fix path of sw.js
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Alessio Davoli 2023-07-19 20:15:43 +02:00
parent 3cd8752fe1
commit db76100b8a

View file

@ -5,7 +5,7 @@
onMount(() => {
if ('serviceWorker' in navigator) {
addEventListener('load', function () {
navigator.serviceWorker.register('../sw.ts');
navigator.serviceWorker.register('/service-worker.js');
});
navigator.serviceWorker.addEventListener('message', (event) => {