From 027589ca47ac7795ece9b34c60813c9f47610698 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Sat, 5 Apr 2025 18:40:02 -0700 Subject: [PATCH] fix check --- static/js/faviconTheme.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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');