We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1b0a4b3 + 56a431c commit 1842794Copy full SHA for 1842794
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