Skip to content
Permalink
Browse files
Detect 'process' package
  • Loading branch information
alexey-pelykh committed Apr 20, 2018
1 parent 22f9932 commit 225c66f7198d2995e8232f9486aa9e087dc2a469
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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');

0 comments on commit 225c66f

Please sign in to comment.