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