From dfdecaf2229346fdffd4173a9eabafa5e55a19b3 Mon Sep 17 00:00:00 2001 From: Jonatas Evaristo Date: Fri, 26 Apr 2024 16:03:32 -0300 Subject: [PATCH] Fix: Custom backgrounds in Teams V2 --- app/mainAppWindow/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mainAppWindow/index.js b/app/mainAppWindow/index.js index 018c6c2..d85afba 100644 --- a/app/mainAppWindow/index.js +++ b/app/mainAppWindow/index.js @@ -253,7 +253,7 @@ function onBeforeRequestHandler(details, callback) { callback({ redirectURL: imgUrl }); } // Custom background replace for teams v2 - else if (details.url.startsWith('https://statics.teams.cdn.office.net/evergreen-assets/backgroundimages/' && config.isCustomBackgroundEnabled)) { + else if (details.url.startsWith('https://statics.teams.cdn.office.net/evergreen-assets/backgroundimages/') && config.isCustomBackgroundEnabled) { const reqUrl = details.url.replace('https://statics.teams.cdn.office.net/evergreen-assets/backgroundimages/', ''); const imgUrl = getBGRedirectUrl(reqUrl); logger.debug(`Forwarding '${details.url}' to '${imgUrl}'`);