fix(pwa) fix PWA worker script origin

Looks like the base it's still applied, so use a full URL.
This commit is contained in:
Saúl Ibarra Corretgé 2020-10-21 12:12:21 +02:00 committed by Saúl Ibarra Corretgé
parent ad265d5815
commit 348c6416e5
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@
if (shouldRegisterWorker) {
navigator.serviceWorker
.register('/pwa-worker.js')
.register(window.location.origin + '/pwa-worker.js')
.then(reg => {
console.log('Service worker registered.', reg);
})