mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
Proper fix.
This commit is contained in:
parent
5f41447158
commit
b294c8ef72
@ -6,7 +6,7 @@ import { useEffect } from 'react';
|
|||||||
|
|
||||||
export default function useTheme() {
|
export default function useTheme() {
|
||||||
const defaultTheme =
|
const defaultTheme =
|
||||||
typeof window !== undefined
|
typeof window !== 'undefined'
|
||||||
? window?.matchMedia('prefers-color-scheme: dark')?.matches
|
? window?.matchMedia('prefers-color-scheme: dark')?.matches
|
||||||
? 'dark'
|
? 'dark'
|
||||||
: 'light'
|
: 'light'
|
||||||
|
Loading…
Reference in New Issue
Block a user