From 0c0446e254b99e7e94d7e83db3576b51b3b0f571 Mon Sep 17 00:00:00 2001 From: Matt DesLauriers Date: Mon, 6 Jul 2015 20:38:38 -0400 Subject: [PATCH] explain the process.platform check --- docs/tutorial/quick-start.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/tutorial/quick-start.md b/docs/tutorial/quick-start.md index 644793f62378..8f723bbcf64e 100644 --- a/docs/tutorial/quick-start.md +++ b/docs/tutorial/quick-start.md @@ -82,6 +82,8 @@ var mainWindow = null; // Quit when all windows are closed. app.on('window-all-closed', function() { + // On OSX 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(); }