From 91a752c6e650eb160a91e78f93424762bc19a6ac Mon Sep 17 00:00:00 2001 From: Oj Date: Wed, 27 Apr 2022 22:01:14 +0100 Subject: [PATCH] [WinFirst] Fix broken require path --- src/winFirst.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/winFirst.js b/src/winFirst.js index df49426..cf5c0e0 100644 --- a/src/winFirst.js +++ b/src/winFirst.js @@ -15,7 +15,7 @@ exports.do = (updater) => { const proto = Constants.APP_PROTOCOL; const base = 'HKCU\\Software\\Classes\\' + proto; - require('../utils/registry').add([[base, '/ve', '/d', `URL:${proto} Protocol`], [base, '/v', 'URL Protocol'], [base + '\\DefaultIcon', '/ve', '/d', `"${process.execPath}",-1`], [base + '\\shell\\open\\command', '/ve', '/d', `"${process.execPath}" --url -- "%1"`]], () => { // Make protocol + require('./utils/registry').add([[base, '/ve', '/d', `URL:${proto} Protocol`], [base, '/v', 'URL Protocol'], [base + '\\DefaultIcon', '/ve', '/d', `"${process.execPath}",-1`], [base + '\\shell\\open\\command', '/ve', '/d', `"${process.execPath}" --url -- "%1"`]], () => { // Make protocol try { // Make shortcuts const file = Constants.APP_NAME_FOR_HUMANS + '.lnk'; const icon_path = join(root, 'app.ico');