From c484148078711cc50198385b901022ca46cdf4e0 Mon Sep 17 00:00:00 2001 From: Eduard Prigoana Date: Mon, 9 Feb 2026 01:09:25 +0000 Subject: [PATCH] fix album search --- js/storage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/storage.js b/js/storage.js index f545a4b..a02647e 100644 --- a/js/storage.js +++ b/js/storage.js @@ -237,7 +237,7 @@ export const themeManager = { if (theme === 'system') { const isDark = window.matchMedia('(prefers-color-scheme: dark)').matches; - document.documentElement.setAttribute('data-theme', isDark ? 'dark' : 'white'); + document.documentElement.setAttribute('data-theme', isDark ? 'monochrome' : 'white'); } else { document.documentElement.setAttribute('data-theme', theme); } @@ -1172,7 +1172,7 @@ export const sidebarSectionSettings = { if (typeof window !== 'undefined' && window.matchMedia) { window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', (e) => { if (themeManager.getTheme() === 'system') { - document.documentElement.setAttribute('data-theme', e.matches ? 'dark' : 'white'); + document.documentElement.setAttribute('data-theme', e.matches ? 'monochrome' : 'white'); } }); }