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:
parent
b4c88ccf98
commit
3527fdc9fb
1 changed files with 6 additions and 4 deletions
10
electron.js
10
electron.js
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue