vgtracker/index.html
2025-02-18 13:53:32 +02:00

24 lines
695 B
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Game Item Tracker</title>
<script>
(function() {
if (typeof window !== 'undefined') {
const darkMode = localStorage.getItem('theme') === 'dark' ||
(!localStorage.getItem('theme') && window.matchMedia('(prefers-color-scheme: dark)').matches);
if (darkMode) {
document.documentElement.classList.add('dark');
}
}
})();
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>