fix style

This commit is contained in:
Matthias Mair 2026-06-23 07:34:15 +02:00
parent 287f1c6caf
commit 718edbbf7b
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,4 @@
import {
type MantineColorScheme,
type MantineColorSchemeManager,
isMantineColorScheme
} from '@mantine/core';
@ -29,7 +28,9 @@ export function localStorageColorSchemeManager({
}
// If no value, check the system preference
const systemPrefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
const systemPrefersDark = window.matchMedia(
'(prefers-color-scheme: dark)'
).matches;
return systemPrefersDark ? 'dark' : 'light';
} catch {
return defaultValue;