fixed service worker

This commit is contained in:
Luca Haid
2025-04-09 21:42:46 +02:00
parent 3d7bc55302
commit cbb6497d77
3 changed files with 23 additions and 11 deletions

View File

@@ -303,7 +303,7 @@ $additionalHead = [
<script>
$(function() {
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/assets/pwa/patching-sw.js')
navigator.serviceWorker.register('/Patching/sw', { scope: '/' })
.then(registration => {
console.log('Patching PWA Service Worker registered with scope:', registration.scope);
})