From b8d4709eec9c2cc6766763ab26bab8ac4d10500f Mon Sep 17 00:00:00 2001 From: psychobunny Date: Fri, 18 Dec 2020 10:03:36 -0500 Subject: [PATCH] fix(pwa): #9127 service-worker.js missing on subfolder installs --- public/src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/app.js b/public/src/app.js index 72dd0faf87..5e87d55086 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -786,7 +786,7 @@ app.cacheBuster = null; function registerServiceWorker() { if ('serviceWorker' in navigator) { - navigator.serviceWorker.register('/service-worker.js') + navigator.serviceWorker.register(config.relative_path + '/service-worker.js') .then(function () { console.info('ServiceWorker registration succeeded.'); }).catch(function (err) {