mirror of
https://github.com/debug-js/debug.git
synced 2026-01-18 16:12:38 +00:00
corrected PR for other browsers
Sorry, this should work now. window.localStorage is undefined in chrome apps.
This commit is contained in:
parent
e9c730a6e2
commit
de8695b6be
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user