[Theme] fix persist pages

This commit is contained in:
2026-08-09 06:53:25 +02:00
parent f6093d9876
commit 904ed7e317
5 changed files with 39 additions and 67 deletions
-10
View File
@@ -1,16 +1,6 @@
<!doctype html>
<html lang="en">
<head>
<script>
(function () {
const theme = localStorage.getItem("theme");
const prefersDark = window.matchMedia(
"(prefers-color-scheme: dark)",
).matches;
if (theme === "dark" || (!theme && prefersDark))
document.documentElement.classList.add("dark");
})();
</script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />