Skip to content

Commit

Permalink
corrected PR for other browsers
Browse files Browse the repository at this point in the history
Sorry, this should work now. window.localStorage is undefined in chrome apps.
  • Loading branch information
Zeus Gómez Marmolejo committed Oct 8, 2014
1 parent e9c730a commit de8695b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exports.useColors = useColors;

var storage;

if (chrome.storage.local !== undefined)
if (chrome && chrome.storage)
storage = chrome.storage.local;
else
storage = window.localStorage;
Expand Down

0 comments on commit de8695b

Please sign in to comment.