1
0
Fork 0
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:
Andrew Simachev 2023-05-31 16:06:44 +02:00
parent 30e27bc68b
commit 97db0a0010
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8
5 changed files with 21 additions and 10 deletions

View file

@ -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);
};
});