π Hi again! Welcome back to another blog post and this one will also be quite helpful! In this post, I have covered about how you can change the favicon according to system dark mode. An example is GitHub. When my system color is dark, the logo bec...
blog.usmans.me6 min read
Favicon should change in incognito browsing tab or window if possible
Nice! Quick additional tip, you don't have to run setInterval every second. You can add an event listener directly:
// chrome + firefox
isDark.addEventListener('change', (e) => {})
// safari
isDark.addListener((e) => {})
Dev By RayRay
Tech Lead / Lead Developer in the π³π± https://byrayray.dev/
This is cool π