mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-23 03:31:56 +00:00
Replace deprecated getWebContents API
This commit is contained in:
committed by
Anders Kaseorg
parent
6a7f26d7e8
commit
e97ab2e6dd
@@ -207,7 +207,7 @@ function toggleTray(): void {
|
||||
|
||||
const selector = 'webview:not([class*=disabled])';
|
||||
const webview: WebviewTag = document.querySelector(selector);
|
||||
const webContents = webview.getWebContents();
|
||||
const webContents = remote.webContents.fromId(webview.getWebContentsId());
|
||||
webContents.send('toggletray', state);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user