Skip to content

Commit

Permalink
Fix browser detection
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo authored and TooTallNate committed Sep 13, 2017
1 parent 7cd9e53 commit fdfa0f5
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') {
module.exports = require('./browser.js');
} else {
module.exports = require('./node.js');
Expand Down

0 comments on commit fdfa0f5

Please sign in to comment.