From 68b91e94732c8c2e0f8949a78a1623cddd179682 Mon Sep 17 00:00:00 2001 From: roiLeo Date: Tue, 10 Oct 2023 09:31:36 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20isDarkMode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composables/useTheme.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/composables/useTheme.ts b/composables/useTheme.ts index 8401411a12..850899d72d 100644 --- a/composables/useTheme.ts +++ b/composables/useTheme.ts @@ -1,11 +1,7 @@ export default function () { const colorMode = useColorMode() - const isDarkMode = computed( - () => - colorMode.preference === 'dark' || - document.documentElement.className.includes('dark-mode'), - ) + const isDarkMode = computed(() => colorMode.preference === 'dark') const toggleColorMode = (): void => { if (colorMode.preference === 'dark') {