We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afac9f8 commit 56a431cCopy full SHA for 56a431c
src/utils.js
@@ -22,7 +22,8 @@ module.exports.linebrk = function (str, maxLen) {
22
};
23
24
module.exports.detectEnvironment = function () {
25
- if (process && process.title === 'browser' || (typeof(window) !== 'undefined' && window)) {
+
26
+ if (typeof(window) !== 'undefined' && window && !(process && process.title === 'node')) {
27
return 'browser';
28
}
29
0 commit comments