Skip to content

Commit f61b753

Browse files
authored
Update 'isBrowser' function
1 parent ecda9ea commit f61b753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var util = {
3737
},
3838

3939
// IBM required for generic JS framework support
40-
isBrowser: function isBrowser() { return process && process.browser; },
40+
isBrowser: function isBrowser() { return typeof window !== "undefined"; },
4141
isNode: function isNode() { return !util.isBrowser(); },
4242

4343
uriEscape: function uriEscape(string) {

0 commit comments

Comments
 (0)