Merge pull request #2140 from mattdesl/patch-1

Document `process.platform` check in example
This commit is contained in:
Cheng Zhao 2015-07-07 11:45:10 +08:00
commit 808ceb8811

View file

@ -82,6 +82,8 @@ var mainWindow = null;
// Quit when all windows are closed. // Quit when all windows are closed.
app.on('window-all-closed', function() { 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') { if (process.platform != 'darwin') {
app.quit(); app.quit();
} }