We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
process
1 parent 1c6f458 commit a746d52Copy full SHA for a746d52
browser.js
@@ -144,7 +144,7 @@ function load() {
144
} catch(e) {}
145
146
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
147
- if ('env' in (typeof process === 'undefined' ? {} : process)) {
+ if (typeof process !== 'undefined' && 'env' in process) {
148
r = process.env.DEBUG;
149
}
150
index.js
@@ -3,7 +3,7 @@
3
* treat as a browser.
4
*/
5
6
-if ((typeof process === 'undefined' ? {} : process).type === 'renderer') {
+if (typeof process !== 'undefined' && process.type === 'renderer') {
7
module.exports = require('./browser.js');
8
} else {
9
module.exports = require('./node.js');
0 commit comments