From 573eed21312ff11bc65a681ecb46e4117871aa3a Mon Sep 17 00:00:00 2001 From: Jonatas Evaristo Date: Fri, 14 Jun 2024 09:35:03 -0300 Subject: [PATCH] Fix: error when opening links (#1300) --- app/mainAppWindow/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/mainAppWindow/index.js b/app/mainAppWindow/index.js index 8373079..c4ad670 100644 --- a/app/mainAppWindow/index.js +++ b/app/mainAppWindow/index.js @@ -49,12 +49,12 @@ exports.onAppReady = async function onAppReady(configGroup) { }); window = await browserWindowManager.createWindow(); - - if (iconChooser) { + + if (iconChooser) { const m = new Menus(window, configGroup, iconChooser.getFile()); m.onSpellCheckerLanguageChanged = onSpellCheckerLanguageChanged; } - + addEventHandlers(); login.handleLoginDialogTry(window, {'ssoBasicAuthUser': config.ssoBasicAuthUser, 'ssoBasicAuthPasswordCommand': config.ssoBasicAuthPasswordCommand}); @@ -296,7 +296,7 @@ function onBeforeSendHeadersHandler(detail, callback) { } function onNewWindow(details) { - logger.debug(`testing RegExp onNewWindow ${new RegExp(config.meetupJoinRegEx).test(arg)}`); + logger.debug(`testing RegExp onNewWindow ${new RegExp(config.meetupJoinRegEx).test(details.url)}`); if (new RegExp(config.meetupJoinRegEx).test(details.url)) { logger.debug('DEBUG - captured meetup-join url'); return { action: 'deny' }; @@ -360,7 +360,7 @@ function getWebRequestFilterFromURL() { if (intune) { intune.setupUrlFilter(filter); } - + return filter; }