Replace deprecated getWebContents API

This commit is contained in:
Manav Mehta
2020-06-22 14:03:44 +05:30
committed by Anders Kaseorg
parent 6a7f26d7e8
commit e97ab2e6dd
3 changed files with 5 additions and 5 deletions

View File

@@ -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);
}