diff --git a/app/mainAppWindow/index.js b/app/mainAppWindow/index.js index 6fb8787..4f33baa 100644 --- a/app/mainAppWindow/index.js +++ b/app/mainAppWindow/index.js @@ -142,7 +142,7 @@ function applyAppConfiguration(config, window) { function handleTeamsV2OptIn(config) { if (config.optInTeamsV2) { - config.url = 'https://teams.microsoft.com/v2/'; + setConfigUrlTeamsV2(config); window.webContents.executeJavaScript('localStorage.getItem("tmp.isOptedIntoT2Web");', true) .then(result => { if ((result == null) || !result) { @@ -160,6 +160,12 @@ function handleTeamsV2OptIn(config) { } } +function setConfigUrlTeamsV2(config) { + if(!config.url.includes('/v2')) { + config.url = config.url+'/v2/'; + } +} + /** * Applies Electron's spell checker capabilities if language codes are provided. * @param {Array} languages Array of language codes to use with spell checker. @@ -228,7 +234,7 @@ function restoreWindow() { } function processArgs(args) { - var regHttps = /^https:\/\/teams\.microsoft\.com\/.*(?:meetup-join|channel)/g; + var regHttps = /^https:\/\/teams\.(microsoft|live)\.com\/.*(?:meetup-join|channel)/g; var regMS = /^msteams:\/.*(?:meetup-join|channel)/g; logger.debug('processArgs:', args); for (const arg of args) { @@ -330,7 +336,12 @@ function onBeforeSendHeadersHandler(detail, callback) { * @returns {{action: 'deny'} | {action: 'allow', outlivesOpener?: boolean, overrideBrowserWindowOptions?: Electron.BrowserWindowConstructorOptions}} */ function onNewWindow(details) { - if (details.url.startsWith('https://teams.microsoft.com/l/meetup-join') || details.url.startsWith('https://teams.microsoft.com/v2/l/meetup-join')) { + if ( + details.url.startsWith('https://teams.microsoft.com/l/meetup-join') || + details.url.startsWith('https://teams.microsoft.com/v2/l/meetup-join') || + details.url.startsWith('https://teams.live.com/l/meetup-join') || + details.url.startsWith('https://teams.live.com/v2/l/meetup-join') + ) { logger.debug('DEBUG - captured meetup-join url'); return { action: 'deny' }; } else if (details.url === 'about:blank' || details.url === 'about:blank#blocked') { diff --git a/com.github.IsmaelMartinez.teams_for_linux.appdata.xml b/com.github.IsmaelMartinez.teams_for_linux.appdata.xml index d8b3bd1..29c37c7 100644 --- a/com.github.IsmaelMartinez.teams_for_linux.appdata.xml +++ b/com.github.IsmaelMartinez.teams_for_linux.appdata.xml @@ -14,11 +14,17 @@ https://github.com/IsmaelMartinez/teams-for-linux/issues com.github.IsmaelMartinez.teams_for_linux.desktop + + +
    +
  • Adding teams.live.com to the URLs evaluated across the app
  • +
+
+
  • Renaming ssoUser to ssoBasicAuthUser, and ssoPasswordCommand to ssoBasicAuthPassswordCommand.
  • -
  • Adding --rpm-digest sha256 to the electron-builder rpm command
  • Adding the config option trayIconEnabled that defaults to true
diff --git a/package.json b/package.json index 1d54b2f..566d31a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "teams-for-linux", - "version": "1.5.0", + "version": "1.5.1", "main": "app/index.js", "description": "Unofficial client for Microsoft Teams for Linux", "homepage": "https://github.com/IsmaelMartinez/teams-for-linux",