From fdfa0f5f6cc7e83fd60b6cf1e7b990cbf6388621 Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Mon, 15 May 2017 10:48:24 +0200 Subject: [PATCH] Fix browser detection --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index e12cf4d5..cabcbcda 100644 --- a/src/index.js +++ b/src/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');