Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
54 lines (50 loc) · 1.65 KB
/
Copy pathindex.html
File metadata and controls
54 lines (50 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
49
50
51
52
53
54
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<script>
(() => {
const stored = (() => {
try {
return localStorage.getItem("theme-preference");
} catch {
return null;
}
})();
const theme =
stored === "light" || stored === "dark" || stored === "system"
? stored
: "system";
const effective =
theme === "system"
? matchMedia("(prefers-color-scheme: dark)").matches
? "dark"
: "light"
: theme;
document.documentElement.dataset.theme = effective;
})();
</script>
<link rel="icon" type="image/svg+xml" href="/icons/favicon.svg" />
<link rel="icon" href="/icons/favicon.ico" sizes="48x48" />
<link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" />
<link rel="manifest" href="/manifest.json" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<meta name="theme-color" content="#f0f3f5" media="(prefers-color-scheme: light)" />
<meta name="theme-color" content="#0e1315" media="(prefers-color-scheme: dark)" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<meta name="apple-mobile-web-app-title" content="Flow" />
<title>Flow Research</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script>
if ("serviceWorker" in navigator) {
window.addEventListener("load", () => {
navigator.serviceWorker.register("/sw.js").catch(() => { });
});
}
</script>
</body>
</html>