3 ms·
It's a neat project, but you should really use feature detection rather than UA string sniffing. Both IE9 and Opera have canvas support, but they are not suppo
by jacobr 15y ago
It's a neat project, but you should really use feature detection rather than UA string sniffing.
Both IE9 and Opera have canvas support, but they are not supported. I am pretty sure Opera has dynamic favicon support as well, not sure about IE.
- tommoor 15y agoThe library does use feature detection to detect canvas support, browser sniffing is only to fix some small rendering differences between browsers.
- raphman 15y agoOpera 11.61 masking as Firefox correctly shows the favicon notifications, however.
- tommoor 15y agoOk, i've updated this so the only UA sniffing is to discount Safari as it appears to have all the required support but doesn't allow dynamic favicons. I'm quite sure there isn't a way to feature detect this. Opera now works a treat :)
- jacobr 15y agoIndeed it does, thanks!