mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
JS-2036: sigusr signal
This commit is contained in:
parent
30e27bc68b
commit
97db0a0010
5 changed files with 21 additions and 10 deletions
|
@ -59,12 +59,12 @@ let csp = [
|
|||
|
||||
if (is.development && !port) {
|
||||
console.error('ERROR: Please define SERVER_PORT env var');
|
||||
Api.exit(mainWindow, false);
|
||||
Api.exit(mainWindow, '', false);
|
||||
return;
|
||||
};
|
||||
|
||||
if (app.isPackaged && !app.requestSingleInstanceLock()) {
|
||||
Api.exit(mainWindow, false);
|
||||
Api.exit(mainWindow, '' ,false);
|
||||
return;
|
||||
};
|
||||
|
||||
|
@ -188,7 +188,7 @@ app.on('before-quit', (e) => {
|
|||
app.exit(0);
|
||||
} else {
|
||||
e.preventDefault();
|
||||
Api.exit(mainWindow, false);
|
||||
Api.exit(mainWindow, '', false);
|
||||
};
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue