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 =
localStorage.getItem('theme') ||
document.documentElement.getAttribute('data-theme') ||
window.matchMedia('(prefers-color-scheme: dark)').matches
? 'dark'
: 'light';
(window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
// Set the favicon color on startup
updateFaviconColor(currentTheme === 'dark');