Skip to content

Commit

Permalink
Detect 'process' package
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-pelykh committed Apr 20, 2018
1 parent 22f9932 commit 225c66f
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 225c66f

Please sign in to comment.