From cf5571b0db09c7722b310ca9922cdcd542e93a51 Mon Sep 17 00:00:00 2001 From: Edi Wang Date: Tue, 19 Sep 2023 13:57:19 +0800 Subject: [PATCH] fix light mode switch --- src/Moonglade.Web/wwwroot/js/app/theme.module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Moonglade.Web/wwwroot/js/app/theme.module.js b/src/Moonglade.Web/wwwroot/js/app/theme.module.js index e68045849..ce6858d0d 100644 --- a/src/Moonglade.Web/wwwroot/js/app/theme.module.js +++ b/src/Moonglade.Web/wwwroot/js/app/theme.module.js @@ -34,7 +34,7 @@ export function useDarkMode() { export function useLightMode() { document.querySelector('#blog-nav').classList.add('bg-accent1'); - $('#blog-nav, #moonglade-footer').removeClass('bg-dark'); + $('#blog-nav, #blog-footer').removeClass('bg-dark'); document.querySelector('#blog-footer').classList.add('bg-accent2');