Skip to content

Commit

Permalink
only leave a process running on macOS- fixes #4442
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Aug 19, 2021
1 parent 3102f39 commit 0f6855d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0f6855d

Please sign in to comment.