Skip to content

Commit 74bd963

Browse files
authored
[wasm][debugging] Enable debugging when Device Toolbar is enabled and Iphone is selected (#48527)
* Enable debugging when Device Toolbar is enabled and Iphone is selected * fix change
1 parent 8ec95de commit 74bd963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Components/Web.JS/src/Platform/Mono/MonoDebugger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { WebAssemblyResourceLoader } from '../WebAssemblyResourceLoader';
66
const navigatorUA = navigator as MonoNavigatorUserAgent;
77
const brands = navigatorUA.userAgentData && navigatorUA.userAgentData.brands;
88
// eslint-disable-next-line @typescript-eslint/no-explicit-any
9-
const currentBrowserIsChromeOrEdge = brands
9+
const currentBrowserIsChromeOrEdge = brands && brands.length > 0
1010
? brands.some(b => b.brand === 'Google Chrome' || b.brand === 'Microsoft Edge' || b.brand === 'Chromium')
1111
: (window as any).chrome;
1212
const platform = navigatorUA.userAgentData?.platform ?? navigator.platform;

0 commit comments

Comments
 (0)