mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
Fix handling for URIs requested before window is open on Windows
This commit is contained in:
parent
d44d5806fd
commit
b189b31347
1 changed files with 5 additions and 1 deletions
|
@ -327,5 +327,9 @@ if (process.platform == 'darwin') {
|
||||||
});
|
});
|
||||||
} else if (process.argv.length >= 3) {
|
} else if (process.argv.length >= 3) {
|
||||||
// No open-url event on Win, but we can still handle URIs provided at launch time
|
// No open-url event on Win, but we can still handle URIs provided at launch time
|
||||||
|
if (!win) {
|
||||||
|
openUri = process.argv[2];
|
||||||
|
} else {
|
||||||
win.webContents.send('open-uri-requested', process.argv[2]);
|
win.webContents.send('open-uri-requested', process.argv[2]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue