fixes #987 fallback to localStorage.DEBUG if debug is not defined (#988)

This commit is contained in:
Luke Zilioli 2025-03-23 18:28:01 -04:00 committed by GitHub
parent a0497bd46d
commit bf2f574c3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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