pull/4263/head
Mike Bostock 12 months ago
parent f8edd7c6b5
commit 9f6f373e73
No known key found for this signature in database
GPG Key ID: C6817CA4CDEC8FDB

@ -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 : '')

Loading…
Cancel
Save