@jitsi/js-utils
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -135,2 +135,19 @@ import EventEmitter from 'events'; | ||
/** | ||
* Switch between window.localStorage and DummyLocalStorage. | ||
*/ | ||
setLocalStorageDisabled(value) { | ||
this._localStorageDisabled = value; | ||
try { | ||
this._storage = value ? new DummyLocalStorage() : window.localStorage; | ||
} catch (ignore) { | ||
// localStorage throws an exception. | ||
} | ||
if (!this._storage) { | ||
this._storage = new DummyLocalStorage(); | ||
} | ||
} | ||
/** | ||
* Empties all keys out of the storage. | ||
@@ -137,0 +154,0 @@ * |
{ | ||
"name": "@jitsi/js-utils", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "Utilities for Jitsi JS projects", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
134779
2703