Skip to content

Commit 1842794

Browse files
authored
Merge pull request #111 from herrjemand/patch-1
Hey, thanks for participate!
2 parents 1b0a4b3 + 56a431c commit 1842794

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ module.exports.linebrk = function (str, maxLen) {
2222
};
2323

2424
module.exports.detectEnvironment = function () {
25-
if (process && process.title === 'browser' || (typeof(window) !== 'undefined' && window)) {
25+
26+
if (typeof(window) !== 'undefined' && window && !(process && process.title === 'node')) {
2627
return 'browser';
2728
}
2829

0 commit comments

Comments
 (0)