From 285d8d356d078f6910460c1e65324c4c362c7912 Mon Sep 17 00:00:00 2001 From: joostdecock Date: Thu, 3 Apr 2025 17:59:32 +0200 Subject: [PATCH] chore: clean up debug code --- sites/org/src/pages/index.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/sites/org/src/pages/index.js b/sites/org/src/pages/index.js index 567f6cd6b68..cf2da243b22 100644 --- a/sites/org/src/pages/index.js +++ b/sites/org/src/pages/index.js @@ -53,25 +53,6 @@ const meta = { } export default function Home() { - useEffect(() => { - // Check initial state - console.log('Initial data-theme:', document.documentElement.getAttribute('data-theme')) - console.log('OS prefers dark:', window.matchMedia('(prefers-color-scheme: dark)').matches) - - // Monitor for changes - const observer = new MutationObserver((mutations) => { - mutations.forEach((mutation) => { - if (mutation.attributeName === 'data-theme') { - console.log('data-theme changed to:', document.documentElement.getAttribute('data-theme')) - } - }) - }) - - observer.observe(document.documentElement, { attributes: true }) - - return () => observer.disconnect() - }, []) - return (