Skip to content

Commit 9fd50d8

Browse files
Fix WebContentsView crash on app quit (#191)
Co-authored-by: Sindre Sorhus <[email protected]>
1 parent 72da237 commit 9fd50d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ const create = (win, options) => {
350350
webContents(win).on('context-menu', handleContextMenu);
351351

352352
return () => {
353-
if (win.isDestroyed()) {
353+
if (win?.isDestroyed?.()) {
354354
return;
355355
}
356356

0 commit comments

Comments
 (0)