Skip to content

Commit d7b68f0

Browse files
committed
Merge pull request #170 from leeyeh/fix/localstorage-check-error
[fix] 修复在浏览器上不使用 localstorage 的问题。
2 parents f7b32b6 + cec48c6 commit d7b68f0

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
@@ -32,7 +32,7 @@ if (global.localStorage) {
3232
if (localStorage.getItem(testKey) != testKey) {
3333
throw new Error();
3434
}
35-
localStorage.remove(testKey);
35+
localStorage.removeItem(testKey);
3636
} catch (e) {
3737
localStorage = require('localstorage-memory');
3838
}

0 commit comments

Comments
 (0)