Skip to content

Commit

Permalink
docs: fix explanation of darwin auto-quit prevention (#24003)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Sova committed Jun 11, 2020
1 parent ce04218 commit a33c10c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/tutorial/first-app.md
Expand Up @@ -141,10 +141,10 @@ function createWindow () {
// Some APIs can only be used after this event occurs.
app.whenReady().then(createWindow)

// Quit when all windows are closed.
// Quit when all windows are closed, except on macOS. There, it's common
// for applications and their menu bar to stay active until the user quits
// explicitly with Cmd + Q.
app.on('window-all-closed', () => {
// On macOS it is common for applications and their menu bar
// to stay active until the user quits explicitly with Cmd + Q
if (process.platform !== 'darwin') {
app.quit()
}
Expand Down

0 comments on commit a33c10c

Please sign in to comment.