mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 11:35:37 +01:00
Revert "Merge remote-tracking branch 'upstream/master'"
This reverts commitc4307db1b8, reversing changes made to5472f952d4.
This commit is contained in:
parent
6caff7df0e
commit
37bdf21b21
11 changed files with 486 additions and 538 deletions
|
|
@ -7,7 +7,7 @@ import { useEffect } from 'react';
|
|||
export default function useTheme() {
|
||||
const defaultTheme =
|
||||
typeof window !== 'undefined'
|
||||
? window?.matchMedia('(prefers-color-scheme: dark)')?.matches
|
||||
? window?.matchMedia('prefers-color-scheme: dark')?.matches
|
||||
? 'dark'
|
||||
: 'light'
|
||||
: 'light';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue