Skip to content

Commit

Permalink
Fix #96207.
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Apr 27, 2020
1 parent f70ea77 commit e0015ab
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ class WebviewKeyboardHandler {
private setIgnoreMenuShortcutsForWebview(webview: WebviewTagHandle, value: boolean) {
if (this.shouldToggleMenuShortcutsEnablement) {
const contents = webview.webContents;
contents?.setIgnoreMenuShortcuts(value);
if (!contents?.isDestroyed()) {
contents?.setIgnoreMenuShortcuts(value);
}
}
}
}
Expand Down

0 comments on commit e0015ab

Please sign in to comment.