From 01e923b26301551b0877a4068e189c89ee4aea3a Mon Sep 17 00:00:00 2001 From: Ayhan Date: Thu, 21 Jul 2016 22:34:28 +0300 Subject: [PATCH] Fix quit problem (#343) --- index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 48c53be5..112e5138 100644 --- a/index.js +++ b/index.js @@ -40,10 +40,8 @@ const url = 'file://' + resolve( console.log('electron will open', url); app.on('window-all-closed', () => { - // by subscribing to this event and nooping - // we prevent electron's default behavior - // of quitting the app when the last - // terminal is closed + if (process.platform != 'darwin') + app.quit(); }); app.on('ready', () => {