Skip to content

Commit 7cbe86b

Browse files
authored
Merge pull request #563 from brainbeanapps/master
Detect 'process' package
2 parents 22f9932 + 225c66f commit 7cbe86b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/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 (typeof process === 'undefined' || process.type === 'renderer') {
6+
if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true) {
77
module.exports = require('./browser.js');
88
} else {
99
module.exports = require('./node.js');

0 commit comments

Comments
 (0)