mts-booking-library 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/mtsStorage.js +1 -2
- package/package.json +1 -1
package/lib/mtsStorage.js
CHANGED
@@ -44,8 +44,7 @@ var useMtsBookingState = function () {
|
|
44
44
|
exports.useMtsBookingState = useMtsBookingState;
|
45
45
|
var useTestState = function () {
|
46
46
|
if (typeof localStorage === "undefined" || localStorage === null) {
|
47
|
-
|
48
|
-
global.localStorage = new LocalStorage("./scratch");
|
47
|
+
throw new Error("localStorage is not available");
|
49
48
|
}
|
50
49
|
return useMtsBookingLocalState;
|
51
50
|
};
|