diff --git a/static/js/faviconTheme.js b/static/js/faviconTheme.js index 473d363..dc33a45 100644 --- a/static/js/faviconTheme.js +++ b/static/js/faviconTheme.js @@ -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');