feat: refactor to react for better ai generation
This commit is contained in:
@@ -4,6 +4,20 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<script>
|
||||
(function() {
|
||||
try {
|
||||
const theme = localStorage.getItem('prefers-color-scheme');
|
||||
document.documentElement.classList.remove('dark', 'light');
|
||||
if (theme === 'dark' || theme === 'light') {
|
||||
document.documentElement.classList.add(theme);
|
||||
} else {
|
||||
const systemTheme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
||||
document.documentElement.classList.add(systemTheme);
|
||||
}
|
||||
} catch(e) {}
|
||||
})();
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user