Fix quit problem (#343)

This commit is contained in:
Ayhan 2016-07-21 22:34:28 +03:00 committed by Guillermo Rauch
parent 400d70e9df
commit 01e923b263

View file

@ -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', () => {