Skip to content

Commit de8695b

Browse files
author
Zeus Gómez Marmolejo
committed
corrected PR for other browsers
Sorry, this should work now. window.localStorage is undefined in chrome apps.
1 parent e9c730a commit de8695b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ exports.useColors = useColors;
1818

1919
var storage;
2020

21-
if (chrome.storage.local !== undefined)
21+
if (chrome && chrome.storage)
2222
storage = chrome.storage.local;
2323
else
2424
storage = window.localStorage;

0 commit comments

Comments
 (0)