Skip to content

Commit 251b20d

Browse files
committed
修复在浏览器上不使用 localstorage 的问题。
1 parent 5899ac7 commit 251b20d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/browserify-wrapper/localstorage-browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ try {
88
if (localStorage.getItem(testKey) != testKey) {
99
throw new Error();
1010
}
11-
localStorage.remove(testKey);
11+
localStorage.removeItem(testKey);
1212
} catch (e) {
1313
localStorage = require('localstorage-memory');
1414
}

0 commit comments

Comments
 (0)