We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 950282e commit 519e337Copy full SHA for 519e337
src/index.js
@@ -68,6 +68,9 @@ function onNotification(webContents) {
68
// Update persistentId
69
config.set('persistentIds', [...persistentIds, persistentId]);
70
// Notify the renderer process that a new notification has been received
71
- webContents.send(NOTIFICATION_RECEIVED, notification);
+ // And check if window is not destroyed for darwin Apps
72
+ if(!webContents.isDestroyed()){
73
+ webContents.send(NOTIFICATION_RECEIVED, notification);
74
+ }
75
};
76
}
0 commit comments