1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

JS-4473: fix

This commit is contained in:
Andrew Simachev 2024-05-10 13:45:14 +02:00
parent b4c88ccf98
commit 3527fdc9fb
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8

View file

@ -171,16 +171,18 @@ app.on('ready', () => {
app.on('second-instance', (event, argv) => {
Util.log('info', 'second-instance');
if (!mainWindow) {
return;
};
if (!is.macos) {
deeplinkingUrl = argv.find(arg => arg.startsWith(`${protocol}://`));
};
if (!mainWindow || !deeplinkingUrl) {
return;
if (deeplinkingUrl) {
Util.send(mainWindow, 'route', Util.getRouteFromUrl(deeplinkingUrl));
};
Util.send(mainWindow, 'route', Util.getRouteFromUrl(deeplinkingUrl));
if (mainWindow.isMinimized()) {
mainWindow.restore();
};