diff options
Diffstat (limited to 'src/routes/+layout.server.ts')
| -rw-r--r-- | src/routes/+layout.server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/+layout.server.ts b/src/routes/+layout.server.ts index 78a4d012..7fa95931 100644 --- a/src/routes/+layout.server.ts +++ b/src/routes/+layout.server.ts @@ -37,7 +37,7 @@ export const load = async ({ cookies, request, url }) => { } await loadTranslations(locale, pathname); // keep this just before the `return` - const theme = cookies.get("theme"); + const theme = cookies.get("theme") || "light"; return { theme, |
