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
commita01950d59aa685bc7dead44a89a9789e49f111cb (patch)
tree8404c55178528b39268615de182a9b879524d0e3 /src/routes/+layout.server.ts
parent5e887e7f1103a1b37200476157b4673773c25a9b (diff)
downloadcoinos-ui-a01950d59aa685bc7dead44a89a9789e49f111cb.tar.gz
coinos-ui-a01950d59aa685bc7dead44a89a9789e49f111cb.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 },