mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-05-14 04:35:04 +00:00
59 lines
2.4 KiB
HTML
59 lines
2.4 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
|
<link rel="manifest" href="/manifest.json" />
|
|
<link rel="icon" type="image/png" href="favicons/favicon-512x512.png" />
|
|
<title>Reticulum MeshChatX</title>
|
|
</head>
|
|
<body class="bg-gray-100">
|
|
<noscript>
|
|
<div
|
|
style="
|
|
box-sizing: border-box;
|
|
margin: 1rem auto;
|
|
padding: 1rem 1.25rem;
|
|
max-width: 40rem;
|
|
border: 1px solid #f59e0b;
|
|
border-radius: 0.5rem;
|
|
background: #fffbeb;
|
|
color: #78350f;
|
|
font:
|
|
0.95rem/1.5 system-ui,
|
|
-apple-system,
|
|
Segoe UI,
|
|
sans-serif;
|
|
"
|
|
>
|
|
<strong style="display: block; margin-bottom: 0.35rem">JavaScript is required</strong>
|
|
MeshChatX needs JavaScript enabled for the user interface. Enable JavaScript in your browser settings
|
|
and reload this page.
|
|
</div>
|
|
</noscript>
|
|
<div id="app"></div>
|
|
<script type="module" src="main.js"></script>
|
|
<script>
|
|
// install service worker
|
|
if ("serviceWorker" in navigator) {
|
|
navigator.serviceWorker.register("/service-worker.js").catch((error) => {
|
|
// Silently handle SSL certificate errors and other registration failures
|
|
// This is common in development with self-signed certificates
|
|
const errorMessage = error.message || "";
|
|
const errorName = error.name || "";
|
|
if (
|
|
errorName === "SecurityError" ||
|
|
errorMessage.includes("SSL certificate") ||
|
|
errorMessage.includes("certificate")
|
|
) {
|
|
return;
|
|
}
|
|
// Log other errors for debugging but don't throw
|
|
console.debug("Service worker registration failed:", error);
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|