mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 18:25:51 +01:00
fix(website): discrepancies in production build
This commit is contained in:
@@ -11,6 +11,8 @@ export function usePageTitle(title: string) {
|
||||
}
|
||||
|
||||
export function useColorScheme() {
|
||||
if (typeof window === "undefined") return;
|
||||
|
||||
const [ prefersDark, setPrefersDark ] = useState((window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches));
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user