We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 173a508 commit 6421101Copy full SHA for 6421101
src/storage.js
@@ -1,7 +1,7 @@
1
// If we can, we use the browser extension API to store data
2
// it's async though, so we synchronize changes from an intermediate
3
// storageData object
4
-const useStorage = typeof chrome.storage !== 'undefined'
+const useStorage = typeof chrome !== 'undefined' && typeof chrome.storage !== 'undefined'
5
6
let storageData = null
7
0 commit comments