urk
This commit is contained in:
parent
80b2f67975
commit
41e560a4d5
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ export function register(config?: Config) {
|
|||
function registerValidSW(swUrl: string, config?: Config) {
|
||||
navigator.serviceWorker
|
||||
.register(swUrl, {
|
||||
scope: window.location.pathname
|
||||
scope: window.location.pathname.endsWith("/") ? window.location.pathname : window.location.pathname + "/"
|
||||
})
|
||||
.then((registration) => {
|
||||
registration.onupdatefound = () => {
|
||||
|
|
Loading…
Reference in a new issue