This commit is contained in:
parent
3cd8752fe1
commit
db76100b8a
1 changed files with 1 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue