We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cd9e53 commit fdfa0f5Copy full SHA for fdfa0f5
src/index.js
@@ -3,7 +3,7 @@
3
* treat as a browser.
4
*/
5
6
-if (typeof process !== 'undefined' && process.type === 'renderer') {
+if (typeof process === 'undefined' || process.type === 'renderer') {
7
module.exports = require('./browser.js');
8
} else {
9
module.exports = require('./node.js');
0 commit comments