Scope service worker to root, to allow it to catch NIPSWeb
This commit is contained in:
parent
08e571e024
commit
47b3c7ed01
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.endsWith("/") ? window.location.pathname : window.location.pathname + "/"
|
||||
scope: "/"
|
||||
})
|
||||
.then((registration) => {
|
||||
registration.onupdatefound = () => {
|
||||
|
|
Loading…
Reference in a new issue