We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af4d3d9 commit 8e267a7Copy full SHA for 8e267a7
browser/browser.js
@@ -40,7 +40,7 @@ var browser = {
40
version: 0
41
};
42
43
-if (window && window.navigator) {
+if (typeof window !== 'undefined' && window.navigator) {
44
detectBrowser();
45
}
46
0 commit comments