fix(pwa): #9127 service-worker.js missing on subfolder installs

v1.18.x
psychobunny 4 years ago
parent db4c68639d
commit b8d4709eec

@ -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) {

Loading…
Cancel
Save