only leave a process running on macOS- fixes #4442

This commit is contained in:
Eugene Pankov 2021-08-19 09:35:42 +02:00
parent 3102f39706
commit 0f6855d978
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -26,7 +26,11 @@ app.on('activate', () => {
}
})
app.on('window-all-closed', () => null)
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit()
}
})
process.on('uncaughtException' as any, err => {
console.log(err)