Skip to content

Commit be2aaa8

Browse files
committed
Add adapter artifacts
1 parent 7cf77e3 commit be2aaa8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

release/adapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2487,7 +2487,7 @@ function detectBrowser(window) {
24872487
};
24882488

24892489
// Fail early if it's not a browser
2490-
if (typeof window === 'undefined' || !window.navigator) {
2490+
if (typeof window === 'undefined' || !window.navigator || !window.navigator.userAgent) {
24912491
result.browser = 'Not a browser.';
24922492
return result;
24932493
}

release/adapter_no_global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2487,7 +2487,7 @@ function detectBrowser(window) {
24872487
};
24882488

24892489
// Fail early if it's not a browser
2490-
if (typeof window === 'undefined' || !window.navigator) {
2490+
if (typeof window === 'undefined' || !window.navigator || !window.navigator.userAgent) {
24912491
result.browser = 'Not a browser.';
24922492
return result;
24932493
}

0 commit comments

Comments
 (0)