Skip to content

Commit 12eca14

Browse files
committed
fix: emit process 'exit' event on window close
1 parent be4e9bf commit 12eca14

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/main-window.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ function createMainWindow (entry, url, argv, onReady) {
5555
closed = true;
5656
});
5757

58+
mainWindow.on('close', function () {
59+
process.emit('exit', 0);
60+
});
61+
5862
// On first load, we trigger the app execution
5963
var webContents = mainWindow.webContents;
6064

0 commit comments

Comments
 (0)