Skip to content

Commit

Permalink
Merge pull request #563 from brainbeanapps/master
Browse files Browse the repository at this point in the history
Detect 'process' package
  • Loading branch information
Qix- authored Jun 20, 2018
2 parents 22f9932 + 225c66f commit 7cbe86b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* treat as a browser.
*/

if (typeof process === 'undefined' || process.type === 'renderer') {
if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true) {
module.exports = require('./browser.js');
} else {
module.exports = require('./node.js');
Expand Down

0 comments on commit 7cbe86b

Please sign in to comment.