提交 d39dcf79 编写于 作者: S sigod 提交者: GitHub

Merge pull request #444 from jnohavica/edge-support

Call window.localStorage moved into try catch
...@@ -28,9 +28,9 @@ function LocalStorageManager() { ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册