Skip to content

Commit 6df7bd3

Browse files
authored
only process.env, remove useless code
1 parent 7d6acd0 commit 6df7bd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function load() {
214214

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

0 commit comments

Comments
 (0)