parse the argument received from the second process and pass it to the current process

This commit is contained in:
Brendan Forster 2016-05-31 16:49:36 +02:00
parent 9ef7254633
commit 4dfcbb6bd6

View file

@ -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) {