Adding PWA support.

This commit is contained in:
Johnnybegood90
2026-03-13 23:46:14 +01:00
parent 2172202d25
commit 79a077a85f
10 changed files with 117 additions and 2 deletions
+8
View File
@@ -9,5 +9,13 @@ foreach ($js_modules as $mod) {
}
?>
</script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/sw.js').catch(() => {});
});
}
</script>
</body>
</html>