Skip to content

Commit

Permalink
Merge pull request #476 from EirikBirkeland/patch-1
Browse files Browse the repository at this point in the history
Drop usage of `chrome.storage` (or make the storage backend pluggable)
  • Loading branch information
Qix- authored Jun 20, 2018
2 parents 7cbe86b + da51af8 commit 71d2aa7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
exports.storage = 'undefined' != typeof chrome
&& 'undefined' != typeof chrome.storage
? chrome.storage.local
: localstorage();
exports.storage = localstorage();

/**
* Colors.
Expand Down

0 comments on commit 71d2aa7

Please sign in to comment.