cpred/_layouts/default.html
Florian 7e5dae0620
All checks were successful
Deploy Jekyll site to Pages / build (push) Successful in 5m21s
Add PWA support: implement service worker, cache assets, and add offline functionality
2025-03-18 22:14:42 +01:00

21 lines
513 B
HTML

<!DOCTYPE html>
<html lang="de">
<head>
{% include head.html %}
</head>
<body>
{% include header.html %}
<main class="container">
{{ content }}
</main>
{% include footer.html %}
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register("{{ '/assets/js/service-worker.js' | relative_url }}")
.then(() => console.log("✅ Service Worker registriert"))
.catch(error => console.log("❌ Service Worker Fehler:", error));
}
</script>
</body>
</html>