aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/+layout.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-11 20:10:43 -0800
committerAdam Soltys <[email protected]>2026-02-11 20:10:43 -0800
commit56a04684c1fb77ea7b21afc6b0d2e1c4773906f6 (patch)
treed6bc2557c56b93177bb14aa376847c6e123a4862 /src/routes/+layout.ts
parent13466248004327e9a026cb89f94926f9b060d1c1 (diff)
downloadcoinos-ui-56a04684c1fb77ea7b21afc6b0d2e1c4773906f6.tar.gz
coinos-ui-56a04684c1fb77ea7b21afc6b0d2e1c4773906f6.zip
format
Diffstat (limited to 'src/routes/+layout.ts')
-rw-r--r--src/routes/+layout.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/routes/+layout.ts b/src/routes/+layout.ts
index 1feee3e6..eee702d1 100644
--- a/src/routes/+layout.ts
+++ b/src/routes/+layout.ts
@@ -23,9 +23,7 @@ export const load = async ({ data }) => {
let theme = cookies.get("theme");
if (!theme) {
- theme = matchMedia("(prefers-color-scheme: dark)").matches
- ? "dark"
- : "light";
+ theme = matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
cookies.set("theme", theme, opts);