add pwa stuff

This commit is contained in:
2025-05-10 22:45:10 +01:00
parent 2cfee11ca9
commit bd560cbd90
7 changed files with 41 additions and 1 deletions

View File

@@ -4,6 +4,9 @@
<head>
<title>7am Weather</title>
<link rel="icon" type="image/png" href="/favicon.png">
<link rel="manifest" href="/manifest.json">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap" rel="stylesheet">
@@ -37,6 +40,12 @@
</p>
</footer>
</div>
<script>
window.addEventListener("load", () => {
navigator.serviceWorker.register("/sw.js")
})
</script>
</body>
</html>