Add PWA support: implement service worker, cache assets, and add offline functionality
All checks were successful
Deploy Jekyll site to Pages / build (push) Successful in 5m21s
All checks were successful
Deploy Jekyll site to Pages / build (push) Successful in 5m21s
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
{% include footer.html %}
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register("{{ /assets/js/service-worker.js | relative_url }}")
|
||||
navigator.serviceWorker.register("{{ '/assets/js/service-worker.js' | relative_url }}")
|
||||
.then(() => console.log("✅ Service Worker registriert"))
|
||||
.catch(error => console.log("❌ Service Worker Fehler:", error));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user