diff options
Diffstat (limited to 'src/routes/+layout.svelte')
| -rw-r--r-- | src/routes/+layout.svelte | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 7cb90195..d25f570a 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -10,7 +10,7 @@ let { data, children } = $props(); let { pathname, theme } = $state(data); - $themeStore = data.theme; + $effect(() => ($themeStore = data.theme)); $effect(() => (theme = $themeStore)); let host = PUBLIC_DOMAIN.includes("localhost") |
