diff options
| author | Adam Soltys <[email protected]> | 2024-11-08 23:38:55 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-08 23:38:55 -0800 |
| commit | 15e75613dfd66dbd58526a55b9097e38666373b0 (patch) | |
| tree | 5ee5a223231e87f633e335890fa9f8f0a0c2c170 /src/routes/+layout.server.ts | |
| parent | 6e6612b5279d9f9e49fb7aab0fb28445ae9ef937 (diff) | |
| download | coinos-ui-15e75613dfd66dbd58526a55b9097e38666373b0.tar.gz coinos-ui-15e75613dfd66dbd58526a55b9097e38666373b0.zip | |
default light theme
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, |
