WebView: Remove nodeIntegration parameter.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-02-18 13:54:49 -08:00
parent 743b2d6054
commit fd6cb548f8
2 changed files with 1 additions and 4 deletions

View File

@@ -27,7 +27,6 @@ interface WebViewProps {
isActive: () => boolean;
switchLoading: (loading: boolean, url: string) => void;
onNetworkError: (index: number) => void;
nodeIntegration: boolean;
preload?: string;
onTitleChange: () => void;
hasPermission?: (origin: string, permission: string) => boolean;
@@ -59,13 +58,12 @@ export default class WebView {
<webview
data-tab-id="${this.props.tabIndex}"
src="${this.props.url}"
${this.props.nodeIntegration ? html`nodeIntegration` : html``}
${this.props.preload === undefined
? html``
: html`preload="${this.props.preload}"`}
partition="persist:webviewsession"
webpreferences="
contextIsolation=${!this.props.nodeIntegration},
contextIsolation,
spellcheck=${Boolean(
ConfigUtil.getConfigItem("enableSpellchecker", true),
)},