feat: vidstack

This commit is contained in:
ner committed 2024-10-12 22:26:39 +03:00
1 parent 184ee26e5b
commit c31058c4f7
22 files changed
+419 -191

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ const Provider: FC<Props> = ({ children, theme: initialTheme }) => {
return setTheme(window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
}
document.documentElement.setAttribute('class', theme);
document.documentElement.setAttribute('data-mode', theme);
Cookies.set('theme', theme);
}, [theme, setTheme]);