aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/+layout.server.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-06 23:10:14 -0800
committerAdam Soltys <[email protected]>2024-11-06 23:10:14 -0800
commitfef8b840e14cfc935c59fea29957c78ff13d3312 (patch)
tree8404c55178528b39268615de182a9b879524d0e3 /src/routes/+layout.server.ts
parent2543db7ab1874d4e773a03c26946ad179877d443 (diff)
downloadcoinos-ui-fef8b840e14cfc935c59fea29957c78ff13d3312.tar.gz
coinos-ui-fef8b840e14cfc935c59fea29957c78ff13d3312.zip
theme cookie
Diffstat (limited to 'src/routes/+layout.server.ts')
-rw-r--r--src/routes/+layout.server.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/routes/+layout.server.ts b/src/routes/+layout.server.ts
index b4022e69..78a4d012 100644
--- a/src/routes/+layout.server.ts
+++ b/src/routes/+layout.server.ts
@@ -37,8 +37,10 @@ export const load = async ({ cookies, request, url }) => {
}
await loadTranslations(locale, pathname); // keep this just before the `return`
+ const theme = cookies.get("theme");
return {
+ theme,
host,
pathname,
i18n: { locale, route: pathname },