Skip to content

Commit

Permalink
If we're in Electron, try to fallback to process.env.DEBUG if we've g…
Browse files Browse the repository at this point in the history
…ot it
  • Loading branch information
anaisbetts committed Nov 9, 2016
1 parent 2ba1323 commit dc86779
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ function load() {
try {
r = exports.storage.debug;
} catch(e) {}

// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
if ('env' in (process || {})) {
r = process.env.DEBUG;
}

return r;
}

Expand Down

0 comments on commit dc86779

Please sign in to comment.