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.
2 parents 17465a1 + 7bfe554 commit 7cf77e3Copy full SHA for 7cf77e3
src/js/utils.js
@@ -153,7 +153,8 @@ export function detectBrowser(window) {
153
const result = {browser: null, version: null};
154
155
// Fail early if it's not a browser
156
- if (typeof window === 'undefined' || !window.navigator) {
+ if (typeof window === 'undefined' || !window.navigator ||
157
+ !window.navigator.userAgent) {
158
result.browser = 'Not a browser.';
159
return result;
160
}
0 commit comments