We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d6acd0 commit 6df7bd3Copy full SHA for 6df7bd3
src/browser.js
@@ -214,7 +214,7 @@ function load() {
214
215
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
216
// process.env is undefined in sometimes, and it will throw a exception
217
- if (!r && typeof process !== 'undefined' && 'env' in process && process.env !== undefined) {
+ if (!r && typeof process !== 'undefined' && process.env) {
218
r = process.env.DEBUG;
219
}
220
0 commit comments