mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Proper fix.
This commit is contained in:
parent
5f41447158
commit
b294c8ef72
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ import { useEffect } from 'react';
|
|||
|
||||
export default function useTheme() {
|
||||
const defaultTheme =
|
||||
typeof window !== undefined
|
||||
typeof window !== 'undefined'
|
||||
? window?.matchMedia('prefers-color-scheme: dark')?.matches
|
||||
? 'dark'
|
||||
: 'light'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue