Skip to content

Commit cec48c6

Browse files
committed
[fix] 修复在浏览器上不使用 localstorage 的问题。
1 parent f7b32b6 commit cec48c6

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)