-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
30 lines (30 loc) · 981 Bytes
/
index.html
File metadata and controls
30 lines (30 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="data:,">
<title>GLORP</title>
<script>
// Apply high-contrast attribute before first paint to avoid flash of
// un-styled content. Reads from the same localStorage key used by
// Zustand persist ("glorp-settings").
var stored, parsed;
try {
stored = localStorage.getItem("glorp-settings");
if (stored) {
parsed = JSON.parse(stored);
if (parsed && parsed.state && parsed.state.highContrast === true) {
document.documentElement.setAttribute("data-high-contrast", "true");
}
}
} catch (e) {
// Ignore storage / parse errors — graceful degradation.
}
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>