[shawn] fix: type webview allowpopups as boolean for @types/react

@types/react's WebViewHTMLAttributes types allowpopups as
boolean | undefined, which shadows the project's electron.d.ts
declaration of string. Passing {true} renders identically to
"true" at runtime for the webview element, and clears the tsc error.
This commit is contained in:
TheAchiever6823
2026-05-20 03:28:05 -07:00
parent fe0c3af0f2
commit b538d4c307
@@ -1054,7 +1054,7 @@ const BrowserCard: React.FC<Props> = ({
}}
data-tab-id={tab.id}
src="about:blank"
allowpopups="true"
allowpopups={true}
useragent={chromeUserAgent}
{...(webviewPreloadPath ? { preload: webviewPreloadPath } : {})}
webpreferences="plugins=yes, autoplayPolicy=no-user-gesture-required"