mirror of
https://github.com/debug-js/debug.git
synced 2026-01-25 16:42:28 +00:00
Merge pull request #476 from EirikBirkeland/patch-1
Drop usage of `chrome.storage` (or make the storage backend pluggable)
This commit is contained in:
commit
71d2aa77ff
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user