Merge pull request #476 from EirikBirkeland/patch-1

Drop usage of `chrome.storage` (or make the storage backend pluggable)
This commit is contained in:
Qix 2018-06-20 13:03:33 -06:00 committed by GitHub
commit 71d2aa77ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.