Skip to content

Commit

Permalink
fixes debug-js#987 fallback to localStorage.DEBUG if debug is not def…
Browse files Browse the repository at this point in the history
…ined
  • Loading branch information
lzilioli committed Jan 15, 2025
1 parent 7e3814c commit e34db07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ function save(namespaces) {
function load() {
let r;
try {
r = exports.storage.getItem('debug');
r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;
} catch (error) {
// Swallow
// XXX (@Qix-) should we be logging these?
Expand Down

0 comments on commit e34db07

Please sign in to comment.