Skip to content

Commit

Permalink
fix(browser): do not override ls debug if found
Browse files Browse the repository at this point in the history
  • Loading branch information
levithomason authored Nov 13, 2016
1 parent a746d52 commit 20c37fd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,13 @@ function save(namespaces) {
function load() {
var r;
try {
r = exports.storage.debug;
return exports.storage.debug;
} catch(e) {}

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

return r;
}

/**
Expand Down

0 comments on commit 20c37fd

Please sign in to comment.