fix(ServiceWorker): sw.js url (#1609)

make sw.js work for url like 'https://mydomain.com/vuetorrent/'
This commit is contained in:
Jeff 2024-03-25 16:56:21 +08:00 committed by GitHub
parent 08a49f04b6
commit 702ff80ae3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1 +1 @@
"serviceWorker"in navigator&&window.addEventListener("load",(async()=>{await navigator.serviceWorker.register("/sw.js")}))
"serviceWorker"in navigator&&window.addEventListener("load",(async()=>{await navigator.serviceWorker.register("sw.js")}))