Skip to content

Commit

Permalink
chore: remove fallback case for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
bang9 committed Oct 24, 2024
1 parent a5e2f82 commit 7b818b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/BotProfileImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import BotProfileIcon from '../icons/bot-profile-image-small.svg';
function isMaybeFavicon(url: string) {
if (url.length < 4) return false;
const fileName = url.substring(url.lastIndexOf('/') + 1);
return /fav_|favicon|\.ico/.test(fileName);
return fileName.startsWith('fav_');
}

const FaviconContainer = styled.div<{ size: number }>`
Expand Down

0 comments on commit 7b818b5

Please sign in to comment.