feat: vidstack
This commit is contained in:
1 parent
184ee26e5b
commit
c31058c4f7
22 files changed
+419
-191
No files matched your search
+1
-1
@@ -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]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user