]> khamidou — GitHub mirrors - electron.git/commitdiff
explain the process.platform check
authorMatt DesLauriers <dave.des@gmail.com>
Tue, 7 Jul 2015 00:38:38 +0000 (20:38 -0400)
committerMatt DesLauriers <dave.des@gmail.com>
Tue, 7 Jul 2015 00:38:38 +0000 (20:38 -0400)
docs/tutorial/quick-start.md

index 644793f6237807876102a3b0640b73a861e36c19..8f723bbcf64eac6ff5791674e15a36a3e5d5f08d 100644 (file)
@@ -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();
   }