explain the process.platform check
This commit is contained in:
parent
519b51f055
commit
0c0446e254
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