Skip to content

Commit 56fd336

Browse files
committed
be super-safe in index.js as well
1 parent 0b6ca27 commit 56fd336

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* treat as a browser.
44
*/
55

6-
if ((process || {}).type === 'renderer') {
6+
if ((typeof process === 'undefined' ? {} : process).type === 'renderer') {
77
module.exports = require('./browser.js');
88
} else {
99
module.exports = require('./node.js');

0 commit comments

Comments
 (0)