From 348c6416e56005f6350961fc8318262113ee0c96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 21 Oct 2020 12:12:21 +0200 Subject: [PATCH] fix(pwa) fix PWA worker script origin Looks like the base it's still applied, so use a full URL. --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index cf1cd6446f..0f4f579133 100644 --- a/index.html +++ b/index.html @@ -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); })