Merge pull request #2140 from mattdesl/patch-1
Document `process.platform` check in example
This commit is contained in:
commit
808ceb8811
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue