Skip to content

Commit bf2f574

Browse files
authored
fixes #987 fallback to localStorage.DEBUG if debug is not defined (#988)
1 parent a0497bd commit bf2f574

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ function save(namespaces) {
219219
function load() {
220220
let r;
221221
try {
222-
r = exports.storage.getItem('debug');
222+
r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;
223223
} catch (error) {
224224
// Swallow
225225
// XXX (@Qix-) should we be logging these?

0 commit comments

Comments
 (0)