Skip to content

Commit

Permalink
fix(browser): should check whether process exists
Browse files Browse the repository at this point in the history
Closes #325.
  • Loading branch information
tomtomau authored and TooTallNate committed Nov 10, 2016
1 parent 6b45c3a commit 0b6ca27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function load() {
} catch(e) {}

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

Expand Down

0 comments on commit 0b6ca27

Please sign in to comment.