diff --git a/packages/site-demo/src/global-theme/theme-switcher.ts b/packages/site-demo/src/global-theme/theme-switcher.ts index 8538559a1..36a0c1e64 100644 --- a/packages/site-demo/src/global-theme/theme-switcher.ts +++ b/packages/site-demo/src/global-theme/theme-switcher.ts @@ -2,18 +2,6 @@ import { GlobalTheme } from '@lumx/core/js/types'; const DELAY_THEME_DISABLE = 200; -export function createGlobalThemeSwitcher(defaultGlobalTheme: GlobalTheme) { - const linkStylesheet = document.querySelector('link[rel=stylesheet]:not(#font)'); - if (linkStylesheet) { - return createDevThemeSwitcher(defaultGlobalTheme, linkStylesheet); - } - - const styleSheet = document.querySelector('style'); - if (styleSheet) { - return createProdThemeSwitcher(defaultGlobalTheme, styleSheet); - } -} - /** * In development both themes are loaded in that need to be disabled. */ @@ -49,7 +37,7 @@ function createDevThemeSwitcher(defaultGlobalTheme: GlobalTheme, defaultLinkStyl * In production, the default theme is loaded in a