Skip to content

Commit

Permalink
Merge pull request #444 from jnohavica/edge-support
Browse files Browse the repository at this point in the history
Call window.localStorage moved into try catch
  • Loading branch information
sigod committed Jun 6, 2017
2 parents 837ca51 + 163e480 commit d39dcf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/local_storage_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ function LocalStorageManager() {

LocalStorageManager.prototype.localStorageSupported = function () {
var testKey = "test";
var storage = window.localStorage;

try {
var storage = window.localStorage;
storage.setItem(testKey, "1");
storage.removeItem(testKey);
return true;
Expand Down

0 comments on commit d39dcf7

Please sign in to comment.