mirror of
https://github.com/electron/electron.git
synced 2026-01-24 23:08:10 -05:00
Merge pull request #2140 from mattdesl/patch-1
Document `process.platform` check in example
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user