Skip to content

Commit 0b6ca27

Browse files
tomtomauTooTallNate
authored andcommitted
fix(browser): should check whether process exists
Closes #325.
1 parent 6b45c3a commit 0b6ca27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

browser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function load() {
144144
} catch(e) {}
145145

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

0 commit comments

Comments
 (0)