Fix: Safari private browsing

This commit is contained in:
surunzi
2016-12-30 19:19:28 +08:00
parent d0444e65b5
commit 5467df54d1
7 changed files with 211 additions and 22 deletions

View File

@@ -152,5 +152,7 @@ export default class DevTools extends util.Emitter
}
}
var activeEruda = flag => window.localStorage.setItem('active-eruda', flag);
var localStore = util.safeStorage('local');
var activeEruda = flag => localStore.setItem('active-eruda', flag);