1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 14:07:01 +09:00

JS-367: fix

This commit is contained in:
Andrew Simachev 2022-08-24 10:15:54 +03:00
parent 77d0bbb69e
commit 670f575d25
2 changed files with 3 additions and 1 deletions

View file

@ -50,10 +50,12 @@ let csp = [
if (is.development && !port) {
console.error('ERROR: Please define SERVER_PORT env var');
Api.exit(mainWindow, false);
return;
};
if (app.isPackaged && !app.requestSingleInstanceLock()) {
Api.exit(mainWindow, false);
return;
};
remote.initialize();