mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-17 22: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);
|
console.log('electron will open', url);
|
||||||
|
|
||||||
app.on('window-all-closed', () => {
|
app.on('window-all-closed', () => {
|
||||||
// by subscribing to this event and nooping
|
if (process.platform != 'darwin')
|
||||||
// we prevent electron's default behavior
|
app.quit();
|
||||||
// of quitting the app when the last
|
|
||||||
// terminal is closed
|
|
||||||
});
|
});
|
||||||
|
|
||||||
app.on('ready', () => {
|
app.on('ready', () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue