-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (46 loc) · 1.88 KB
/
Copy pathindex.html
File metadata and controls
50 lines (46 loc) · 1.88 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, viewport-fit=cover"
/>
<title>Racc</title>
<!-- PWA: installable / "Add to Home Screen" on Android & iOS.
NOTE: service-worker registration and the install prompt require a
secure context (HTTPS or localhost). Over a plain http:// Tailscale IP
the app still works, but won't register the SW or offer "Install".
Expose racc-server via `tailscale serve` (HTTPS) to make it installable. -->
<link rel="manifest" href="/manifest.webmanifest" />
<meta name="theme-color" content="#1a1a1f" />
<link rel="icon" type="image/png" href="/icons/icon-192.png" />
<!-- Android: run standalone (no browser chrome) when launched from home screen -->
<meta name="mobile-web-app-capable" content="yes" />
<!-- iOS: standalone launch + status bar styling + home-screen icon -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta
name="apple-mobile-web-app-status-bar-style"
content="black-translucent"
/>
<meta name="apple-mobile-web-app-title" content="Racc" />
<link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" />
<script>
// Register the service worker only in a secure context (HTTPS/localhost);
// on insecure origins navigator.serviceWorker is undefined, so this no-ops.
if ("serviceWorker" in navigator) {
window.addEventListener("load", () => {
navigator.serviceWorker
.register("/sw.js")
.catch((err) =>
console.warn("[pwa] service worker registration failed:", err),
);
});
}
</script>
</head>
<body class="bg-surface-0 text-white">
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>