mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-05 06:23:14 +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,
|
enableRemoteModule: true,
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
partition: 'persist:webviewsession',
|
partition: 'persist:webviewsession',
|
||||||
webviewTag: true
|
webviewTag: true,
|
||||||
|
worldSafeExecuteJavaScript: true
|
||||||
},
|
},
|
||||||
show: false
|
show: false
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -64,7 +64,8 @@ export default class WebView extends BaseComponent {
|
|||||||
name="${this.props.name}"
|
name="${this.props.name}"
|
||||||
webpreferences="
|
webpreferences="
|
||||||
contextIsolation=${!this.props.nodeIntegration},
|
contextIsolation=${!this.props.nodeIntegration},
|
||||||
spellcheck=${Boolean(ConfigUtil.getConfigItem('enableSpellchecker'))}
|
spellcheck=${Boolean(ConfigUtil.getConfigItem('enableSpellchecker'))},
|
||||||
|
worldSafeExecuteJavaScript=true
|
||||||
">
|
">
|
||||||
</webview>
|
</webview>
|
||||||
`;
|
`;
|
||||||
|
|||||||
Reference in New Issue
Block a user