[eric] frontend: sidestep @types/react allowpopups boolean clash, keep runtime string

This commit is contained in:
ciregenz
2026-06-04 23:03:20 -07:00
parent 01e3e2be53
commit 9cc245b705
@@ -1037,7 +1037,7 @@ const BrowserCard: React.FC<Props> = ({
}}
data-tab-id={tab.id}
src="about:blank"
allowpopups="true"
{...({ allowpopups: 'true' } as any) /* React drops boolean-valued unknown attrs, so string it stays; @types/react wrongly says boolean */}
useragent={chromeUserAgent}
{...(webviewPreloadPath ? { preload: webviewPreloadPath } : {})}
webpreferences="plugins=yes, autoplayPolicy=no-user-gesture-required"