Skip to content

Commit fdfa0f5

Browse files
medikooTooTallNate
authored andcommittedSep 13, 2017
Fix browser detection
1 parent 7cd9e53 commit fdfa0f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* treat as a browser.
44
*/
55

6-
if (typeof process !== 'undefined' && 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)
Please sign in to comment.