mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-01 12:33:31 +00:00
Enable worldSafeExecuteJavaScript.
This has no effect on our use of executeJavaScript, and will become the default in Electron 12, but for now it silences a warning in development mode. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -90,7 +90,8 @@ function createMainWindow(): Electron.BrowserWindow {
|
||||
enableRemoteModule: true,
|
||||
nodeIntegration: true,
|
||||
partition: 'persist:webviewsession',
|
||||
webviewTag: true
|
||||
webviewTag: true,
|
||||
worldSafeExecuteJavaScript: true
|
||||
},
|
||||
show: false
|
||||
});
|
||||
|
||||
@@ -64,7 +64,8 @@ export default class WebView extends BaseComponent {
|
||||
name="${this.props.name}"
|
||||
webpreferences="
|
||||
contextIsolation=${!this.props.nodeIntegration},
|
||||
spellcheck=${Boolean(ConfigUtil.getConfigItem('enableSpellchecker'))}
|
||||
spellcheck=${Boolean(ConfigUtil.getConfigItem('enableSpellchecker'))},
|
||||
worldSafeExecuteJavaScript=true
|
||||
">
|
||||
</webview>
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user