mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Fix quit problem (#343)
This commit is contained in:
parent
400d70e9df
commit
01e923b263
1 changed files with 2 additions and 4 deletions
6
index.js
6
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', () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue