Skip to content

Commit d39dcf7

Browse files
authored
Merge pull request #444 from jnohavica/edge-support
Call window.localStorage moved into try catch
2 parents 837ca51 + 163e480 commit d39dcf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/local_storage_manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ function LocalStorageManager() {
2828

2929
LocalStorageManager.prototype.localStorageSupported = function () {
3030
var testKey = "test";
31-
var storage = window.localStorage;
3231

3332
try {
33+
var storage = window.localStorage;
3434
storage.setItem(testKey, "1");
3535
storage.removeItem(testKey);
3636
return true;

0 commit comments

Comments
 (0)