Toggle spell checker in the session rather than the webPreferences.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-03-08 15:40:16 -08:00
parent c6022e94bb
commit 4ed4328bf8
5 changed files with 18 additions and 19 deletions

View File

@@ -71,13 +71,7 @@ export default class WebView {
? html``
: html`preload="${props.preload}"`}
partition="persist:webviewsession"
webpreferences="
contextIsolation,
spellcheck=${Boolean(
ConfigUtil.getConfigItem("enableSpellchecker", true),
)},
worldSafeExecuteJavaScript=true
"
webpreferences="contextIsolation, worldSafeExecuteJavaScript=true"
>
</webview>
`;