From 9f6f373e73be866d652f4a1055054b98a92de20a Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Wed, 9 Oct 2024 10:37:00 -0700 Subject: [PATCH] prettier --- src/client/app/data.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/client/app/data.ts b/src/client/app/data.ts index 146d8742..c99de52f 100644 --- a/src/client/app/data.ts +++ b/src/client/app/data.ts @@ -80,14 +80,14 @@ export function initData(route: Route): VitePressData { appearance === 'force-dark' ? ref(true) : appearance === 'force-auto' - ? usePreferredDark() - : appearance - ? useDark({ - storageKey: APPEARANCE_KEY, - initialValue: () => (appearance === 'dark' ? 'dark' : 'auto'), - ...(typeof appearance === 'object' ? appearance : {}) - }) - : ref(false) + ? usePreferredDark() + : appearance + ? useDark({ + storageKey: APPEARANCE_KEY, + initialValue: () => (appearance === 'dark' ? 'dark' : 'auto'), + ...(typeof appearance === 'object' ? appearance : {}) + }) + : ref(false) const hashRef = ref(inBrowser ? location.hash : '')