From f80c4e3cc7c391eba1d0bc3e15d544b87ce408a8 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Thu, 31 Aug 2023 15:43:28 +0800 Subject: [PATCH] chore: Sync Bilibili Evolved dark/light mode feature --- src/contentScripts/views/App.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/contentScripts/views/App.vue b/src/contentScripts/views/App.vue index 712725fb..4095789e 100644 --- a/src/contentScripts/views/App.vue +++ b/src/contentScripts/views/App.vue @@ -24,14 +24,14 @@ const isDark = useDark({ onChanged: (isDark: boolean) => { if (isDark) { document.documentElement.classList.add('dark') - // Adjust Bilibili Evolved to dark mode when switching to dark mode - document.body.classList.add('dark') + // // Adjust Bilibili Evolved to dark mode when switching to dark mode + // document.body.classList.add('dark') document.querySelector('#bewly')?.classList.add('dark') } else { document.documentElement.classList.remove('dark') - // Adjust Bilibili Evolved to light mode when switching to light mode - document.body.classList.remove('dark') + // // Adjust Bilibili Evolved to light mode when switching to light mode + // document.body.classList.remove('dark') document.querySelector('#bewly')?.classList.remove('dark') } },