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.
2 parents 950282e + 519e337 commit 9330cf6Copy full SHA for 9330cf6
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