Skip to content

Commit

Permalink
Fix: error when opening links (#1300)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatasrs authored Jun 14, 2024
1 parent cb99877 commit 573eed2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/mainAppWindow/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand Down Expand Up @@ -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' };
Expand Down Expand Up @@ -360,7 +360,7 @@ function getWebRequestFilterFromURL() {
if (intune) {
intune.setupUrlFilter(filter);
}

return filter;
}

Expand Down

0 comments on commit 573eed2

Please sign in to comment.