fix: move service worker back to relative_path/service-worker.js

This commit is contained in:
Barış Soner Uşaklı
2021-02-08 12:05:57 -05:00
parent ab0ef44289
commit fca17cb713
2 changed files with 2 additions and 2 deletions

View File

@@ -788,7 +788,7 @@ app.cacheBuster = null;
function registerServiceWorker() {
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register(config.relative_path + '/assets/src/service-worker.js', { scope: config.relative_path + '/' })
navigator.serviceWorker.register(config.relative_path + '/service-worker.js', { scope: config.relative_path + '/' })
.then(function () {
console.info('ServiceWorker registration succeeded.');
}).catch(function (err) {