I'd like to add notifications to my favicon when my window tab is blurred. I'm using react and material ui (using typescript).
I could imagine that it is a very common use case but I can't seem to find an easy solution out there. Any suggestions?
Can you create a version of your icon that contains a notification indicator and then change the favicon using:
document.querySelector("link[rel*='icon']").href = "favicon.ico";
?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.