Skip to content

Commit

Permalink
be super-safe in index.js as well
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Nov 10, 2016
1 parent 0b6ca27 commit 56fd336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* treat as a browser.
*/

if ((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 56fd336

Please sign in to comment.