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 8ec95de commit 74bd963Copy full SHA for 74bd963
src/Components/Web.JS/src/Platform/Mono/MonoDebugger.ts
@@ -6,7 +6,7 @@ import { WebAssemblyResourceLoader } from '../WebAssemblyResourceLoader';
6
const navigatorUA = navigator as MonoNavigatorUserAgent;
7
const brands = navigatorUA.userAgentData && navigatorUA.userAgentData.brands;
8
// eslint-disable-next-line @typescript-eslint/no-explicit-any
9
-const currentBrowserIsChromeOrEdge = brands
+const currentBrowserIsChromeOrEdge = brands && brands.length > 0
10
? brands.some(b => b.brand === 'Google Chrome' || b.brand === 'Microsoft Edge' || b.brand === 'Chromium')
11
: (window as any).chrome;
12
const platform = navigatorUA.userAgentData?.platform ?? navigator.platform;
0 commit comments