mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-03-14 12:10:18 +03:00
fix(ServiceWorker): sw.js url (#1609)
make sw.js work for url like 'https://mydomain.com/vuetorrent/'
This commit is contained in:
parent
08a49f04b6
commit
702ff80ae3
1 changed files with 1 additions and 1 deletions
|
@ -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")}))
|
||||
|
|
Loading…
Add table
Reference in a new issue