Merge pull request #444 from jnohavica/edge-support

Call window.localStorage moved into try catch
This commit is contained in:
sigod
2017-06-06 15:24:21 +03:00
committed by GitHub
+1 -1
View File
@@ -28,9 +28,9 @@ function LocalStorageManager() {
LocalStorageManager.prototype.localStorageSupported = function () { LocalStorageManager.prototype.localStorageSupported = function () {
var testKey = "test"; var testKey = "test";
var storage = window.localStorage;
try { try {
var storage = window.localStorage;
storage.setItem(testKey, "1"); storage.setItem(testKey, "1");
storage.removeItem(testKey); storage.removeItem(testKey);
return true; return true;