-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
48 lines (48 loc) · 1.65 KB
/
Copy pathindex.html
File metadata and controls
48 lines (48 loc) · 1.65 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SessionView — Session Explorer</title>
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<script>
// Resolve the theme and paint the matching window background BEFORE the
// app bundle loads, so cold start shows no flash of a wrong-colored frame.
// Mirrors stores/theme.ts: a stored "system" (or unset) follows OS dark.
(function () {
try {
var stored = localStorage.getItem("sessionview-theme");
var prefersDark =
window.matchMedia &&
window.matchMedia("(prefers-color-scheme: dark)").matches;
var theme =
stored === "light" || stored === "dark"
? stored
: prefersDark
? "dark"
: "light";
document.documentElement.setAttribute("data-theme", theme);
document.documentElement.style.backgroundColor =
theme === "dark" ? "#1e1e20" : "#f6f6f8";
} catch (e) {
// localStorage/matchMedia unavailable — fall through to CSS defaults.
}
})();
</script>
<style>
html, body, #root {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans",
"Helvetica Neue", sans-serif;
}
</style>
</head>
<body>
<div id="root"></div>
<script src="/src/main.tsx" type="module"></script>
</body>
</html>