oflisback/react-favicon

alertCount pixelize .svg favicon

Closed this issue · 3 comments

When using alertCount to display a notification number, the favicon become very pixelized. I've tried with both a 32x32 png favicon and a ".svg" vectorial icon the result is the same, here is the .svg version:

Screenshot 2021-10-08 at 18 52 50

Screenshot 2021-10-08 at 18 53 46

I suppose the issue is coming from the way we "draw" the notification onto the canvas 🤔

Found a way to fix that issue, I've opened a PR for it.

Thanks a lot @avallete I will look into this during the weekend.

Fixed by #32