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 ecda9ea commit f61b753Copy full SHA for f61b753
lib/util.js
@@ -37,7 +37,7 @@ var util = {
37
},
38
39
// IBM required for generic JS framework support
40
- isBrowser: function isBrowser() { return process && process.browser; },
+ isBrowser: function isBrowser() { return typeof window !== "undefined"; },
41
isNode: function isNode() { return !util.isBrowser(); },
42
43
uriEscape: function uriEscape(string) {
0 commit comments