Skip to content

Commit dc86779

Browse files
committed
If we're in Electron, try to fallback to process.env.DEBUG if we've got it
1 parent 2ba1323 commit dc86779

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

browser.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ function load() {
142142
try {
143143
r = exports.storage.debug;
144144
} catch(e) {}
145+
146+
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
147+
if ('env' in (process || {})) {
148+
r = process.env.DEBUG;
149+
}
150+
145151
return r;
146152
}
147153

0 commit comments

Comments
 (0)