From 45f25869016bf069b76fb80b344967d985a6ab39 Mon Sep 17 00:00:00 2001 From: Geoffrey Bonneville Date: Wed, 22 May 2024 01:49:38 +0200 Subject: [PATCH] Support color-scheme in meta tag --- apps/app/components/screens/_layout.tsx | 12 -------- apps/app/public/index.html | 37 +++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 12 deletions(-) create mode 100644 apps/app/public/index.html diff --git a/apps/app/components/screens/_layout.tsx b/apps/app/components/screens/_layout.tsx index 080abc52..fad8c71c 100644 --- a/apps/app/components/screens/_layout.tsx +++ b/apps/app/components/screens/_layout.tsx @@ -156,18 +156,6 @@ const ThemedLayout = () => { const theme = settings.theme === 'system' ? colorSheme : settings.theme const media = useMedia() - // Update colorScheme (for scrollbar) - useEffect(() => { - if (Platform.OS !== 'web') { - return - } - - const rootElem = document.getElementById('root') - if (rootElem && typeof theme === 'string') { - rootElem.style.colorScheme = theme - } - }, [theme]) - return ( + + + + + + + %WEB_TITLE% + + + + + + + + +
+ +