mirror of
https://github.com/desktop/desktop
synced 2024-10-31 05:19:03 +00:00
parse the argument received from the second process and pass it to the current process
This commit is contained in:
parent
9ef7254633
commit
4dfcbb6bd6
1 changed files with 4 additions and 1 deletions
|
@ -26,7 +26,10 @@ const shouldQuit = app.makeSingleInstance((commandLine, workingDirectory) => {
|
|||
mainWindow.focus();
|
||||
}
|
||||
|
||||
// TODO: other things?
|
||||
if (commandLine.length > 1) {
|
||||
const action = parseURL(commandLine[1])
|
||||
mainWindow.sendURLAction(action)
|
||||
}
|
||||
});
|
||||
|
||||
if (shouldQuit) {
|
||||
|
|
Loading…
Reference in a new issue