Skip to content

Commit

Permalink
fix: 🐛 fix black squares in gmail
Browse files Browse the repository at this point in the history
Icons were displayed as black squares. the addUserAgentInterceptor was to large and I added a check for gmail
  • Loading branch information
sudo-tee authored and manusa committed Sep 18, 2022
1 parent 9794439 commit 8b24ea9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/user-agent/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const addUserAgentInterceptor = session => {
if (
details.url.match(/https?:\/\/[^/]+google\.com.*/) // NOSONAR
&& !details.url.match(/https?:\/\/meet.google\.com.*/)
&& !details.url.match(/https?:\/\/mail.google\.com.*/)
) {
details.requestHeaders['User-Agent'] = firefoxUserAgent(details.requestHeaders['User-Agent'])(BROWSER_VERSIONS.firefoxESR);
}
Expand Down

0 comments on commit 8b24ea9

Please sign in to comment.