mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
parent
0780f86b47
commit
60fbc122a8
1 changed files with 5 additions and 8 deletions
13
app/index.js
13
app/index.js
|
|
@ -36,12 +36,6 @@ const url = 'file://' + resolve(
|
|||
|
||||
console.log('electron will open', url);
|
||||
|
||||
app.on('window-all-closed', () => {
|
||||
if (process.platform !== 'darwin') {
|
||||
app.quit();
|
||||
}
|
||||
});
|
||||
|
||||
app.on('ready', () => {
|
||||
function createWindow (fn) {
|
||||
let cfg = plugins.getDecoratedConfig();
|
||||
|
|
@ -227,8 +221,11 @@ app.on('ready', () => {
|
|||
deleteSessions();
|
||||
cfgUnsubscribe();
|
||||
pluginsUnsubscribe();
|
||||
if (windowSet.size === 0) {
|
||||
win.close();
|
||||
});
|
||||
|
||||
win.on('closed', () => {
|
||||
if (process.platform !== 'darwin') {
|
||||
app.quit();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue