From d7ebad284e38d98338728b945af7756f04134542 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 2 Mar 2020 16:46:50 +0000 Subject: [PATCH] update comment --- src/protocol.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/protocol.js b/src/protocol.js index 78d3408..f05d3f1 100644 --- a/src/protocol.js +++ b/src/protocol.js @@ -24,12 +24,13 @@ const processUrl = (url) => { module.exports = () => { // get all args except `hidden` as it'd mean the app would not get focused - // XXX: passing args to protocol handlers only works on Windows, so unpackaged deep-linking won't work on Mac/Linux const args = process.argv.slice(1).filter(arg => arg !== "--hidden" && arg !== "-hidden"); if (app.isPackaged) { app.setAsDefaultProtocolClient('riot', process.execPath, args); } else { // special handler for running without being packaged, e.g `electron .` by passing our app path to electron + // XXX: passing args to protocol handlers only works on Windows, + // so unpackaged (electron .) deep-linking won't work on Mac/Linux app.setAsDefaultProtocolClient('riot', process.execPath, [app.getAppPath(), ...args]); }