From 56a04684c1fb77ea7b21afc6b0d2e1c4773906f6 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 11 Feb 2026 20:10:43 -0800 Subject: format --- src/routes/+layout.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/routes/+layout.ts') 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); -- cgit v1.2.3