aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/+layout.server.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-08 23:38:55 -0800
committerAdam Soltys <[email protected]>2024-11-08 23:38:55 -0800
commitd47895ec4d54feef1114029ba11188362fa1222d (patch)
tree5ee5a223231e87f633e335890fa9f8f0a0c2c170 /src/routes/+layout.server.ts
parent330e1dd77ab59084a831508e1dab103fd601dc49 (diff)
downloadcoinos-ui-d47895ec4d54feef1114029ba11188362fa1222d.tar.gz
coinos-ui-d47895ec4d54feef1114029ba11188362fa1222d.zip
default light theme
Diffstat (limited to 'src/routes/+layout.server.ts')
-rw-r--r--src/routes/+layout.server.ts2
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,