diff options
author | Adam Goldsmith | 2019-10-07 22:06:18 -0400 |
---|---|---|
committer | Adam Goldsmith | 2019-10-08 00:04:11 -0400 |
commit | 5a6e61b4249642c7db9624cbbfb1fc4417b1eba5 (patch) | |
tree | 49144cc91e6d633b85e6b251ec04faea738eba5c /openUrl-fix.patch | |
download | aur-5a6e61b4249642c7db9624cbbfb1fc4417b1eba5.tar.gz |
Initial Commit
Diffstat (limited to 'openUrl-fix.patch')
-rw-r--r-- | openUrl-fix.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/openUrl-fix.patch b/openUrl-fix.patch new file mode 100644 index 000000000000..74e595351c1e --- /dev/null +++ b/openUrl-fix.patch @@ -0,0 +1,14 @@ +--- a/app.js ++++ b/app.js +@@ -128,9 +128,9 @@ function setupMenu() { + + const gotTheLock = app.requestSingleInstanceLock ? app.requestSingleInstanceLock() : true; + let parseOpenUrl = argv => { +- if (argv[1] && argv[1].length && argv[1].substr(0, 12) === 'sidequest://') { ++ if (argv[2] && argv[2].length && argv[2].substr(0, 12) === 'sidequest://') { + //fs.writeFileSync(path.join(app.getPath('appData'), 'SideQuest', 'test_output_loaded.txt'), argv[1].toString()); +- mainWindow.webContents.send('open-url', argv[1].toString()); ++ mainWindow.webContents.send('open-url', argv[2].toString()); + } + }; + |