23 lines
752 B
HTML
23 lines
752 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<link rel="icon" type="image/png" href="/favicon.png"/>
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
<script>
|
|
(function () {
|
|
const prefersDark =
|
|
window.matchMedia &&
|
|
window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
const setting = localStorage.getItem("rco/settings/color-scheme") || "auto";
|
|
const dark = setting === 'auto' ? prefersDark : (setting === 'dark')
|
|
document.documentElement.classList[dark ? 'add' : 'remove']("dark");
|
|
})();
|
|
</script>
|
|
<script type="module" src="/src/main.ts"></script>
|
|
</body>
|
|
</html>
|