fix: quit application via window close icon

This commit closes #33
This commit is contained in:
4gray committed 2021-04-10 23:00:05 +02:00
1 parent 41998ff7a0
commit 24d5584702
1 file changed
+4
+4
View File
@@ -52,6 +52,10 @@ function createWindow(): BrowserWindow {
// in an array if your app supports multi windows, this is the time
// when you should delete the corresponding element.
win = null;
if (process.platform !== 'darwin') {
app.quit();
}
});
return win;