mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-27 03:54:49 +02:00
[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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user