aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/+layout.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/+layout.svelte')
-rw-r--r--src/routes/+layout.svelte2
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")