From 2b9f6ba26861d215bf2f46e73e64fc7c2a29bcef Mon Sep 17 00:00:00 2001 From: anthony Date: Sun, 1 Dec 2024 18:03:25 +0000 Subject: [PATCH] Delete '.fuse_hidden00011c5c0000004a' --- .fuse_hidden00011c5c0000004a | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 .fuse_hidden00011c5c0000004a diff --git a/.fuse_hidden00011c5c0000004a b/.fuse_hidden00011c5c0000004a deleted file mode 100644 index 48ac956..0000000 --- a/.fuse_hidden00011c5c0000004a +++ /dev/null @@ -1,19 +0,0 @@ -function detectTheme() { - if (window.matchMedia('(prefers-color-scheme: dark)').matches) { - // Dark mode - console.log("Dark mode detected"); - // Add your dark mode styles or trigger a CSS class change here - document.body.classList.add('dark-mode'); - } else { - // Light mode - console.log("Light mode detected"); - // Add your light mode styles or trigger a CSS class change here - document.body.classList.add('light-mode'); - } - } - - // Call the function to detect the initial theme - detectTheme(); - - // Listen for changes in the system preference - window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', detectTheme); \ No newline at end of file