Skip to content

Commit dbee28f

Browse files
committed
fix(localStorage): use memory storage as fallback in safari private mode (#468)
1 parent d10299d commit dbee28f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/localstorage-browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ try {
3636
// in browser, `localStorage.async = false` will excute `localStorage.setItem('async', false)`
3737
_(apiNames).each(function(apiName) {
3838
Storage[apiName] = function() {
39-
return global.localStorage[apiName].apply(global.localStorage, arguments);
39+
return localStorage[apiName].apply(localStorage, arguments);
4040
};
4141
});
4242
Storage.async = false;

0 commit comments

Comments
 (0)