From 7c7f44e8a01d7775811fd2dda5fa0c9cf98004ef Mon Sep 17 00:00:00 2001 From: Jahed Ahmed Date: Fri, 11 Nov 2016 10:36:33 +0000 Subject: [PATCH] Fix browser environment detection --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e12cf4d5..cabcbcda 100644 --- a/index.js +++ b/index.js @@ -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');