fix check

This commit is contained in:
Cameron Taylor 2025-04-05 18:40:02 -07:00
parent 8c889a862c
commit 027589ca47

View file

@ -20,9 +20,7 @@ function updateFaviconColor(dark) {
let currentTheme = let currentTheme =
localStorage.getItem('theme') || localStorage.getItem('theme') ||
document.documentElement.getAttribute('data-theme') || document.documentElement.getAttribute('data-theme') ||
window.matchMedia('(prefers-color-scheme: dark)').matches (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
? 'dark'
: 'light';
// Set the favicon color on startup // Set the favicon color on startup
updateFaviconColor(currentTheme === 'dark'); updateFaviconColor(currentTheme === 'dark');