Skip to content

Commit

Permalink
only process.env, remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
aylanbrown authored Sep 3, 2019
1 parent 7d6acd0 commit 6df7bd3
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 @@ -214,7 +214,7 @@ function load() {

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

Expand Down

0 comments on commit 6df7bd3

Please sign in to comment.