Skip to content

Commit

Permalink
Fix: Custom backgrounds in Teams V2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonatas Evaristo committed Apr 26, 2024
1 parent 66c53c6 commit 35bf5ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/mainAppWindow/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}'`);
Expand Down

0 comments on commit 35bf5ae

Please sign in to comment.