diff --git a/index.html b/index.html
index cf1cd6446..0f4f57913 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);
})