Server: Phase 2 (REVIEW not respected yet)
This commit is contained in:
1 parent
5d16ded553
commit
142b47674d
4271 files changed
+1203269
No files matched your search
Vendored
+35
@@ -0,0 +1,35 @@
|
||||
<!doctype html>
|
||||
<html lang="de" data-theme="blue">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="color-scheme" content="light dark" />
|
||||
<title>poorBird</title>
|
||||
<script>
|
||||
// Applies the stored theme before first paint, so there is no flash of
|
||||
// the wrong one. Must stay in sync with theme/ThemeProvider.tsx: same
|
||||
// storage key, same attribute, same default.
|
||||
(function () {
|
||||
try {
|
||||
var stored = localStorage.getItem("poorbird.theme");
|
||||
if (stored === "light" || stored === "dark" || stored === "blue") {
|
||||
document.documentElement.setAttribute("data-theme", stored);
|
||||
}
|
||||
} catch (e) {
|
||||
// Blocked storage: the markup default (blue) stands.
|
||||
}
|
||||
try {
|
||||
var lang = localStorage.getItem("poorbird.locale");
|
||||
if (lang === "de" || lang === "en") {
|
||||
document.documentElement.lang = lang;
|
||||
}
|
||||
} catch (e) {}
|
||||
})();
|
||||
</script>
|
||||
<script type="module" crossorigin src="/assets/index-BVNc27iK.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-2SwVzCAT.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user