|
|
@ -761,9 +761,9 @@ app.cacheBuster = null;
|
|
|
|
if ('serviceWorker' in navigator) {
|
|
|
|
if ('serviceWorker' in navigator) {
|
|
|
|
navigator.serviceWorker.register('/service-worker.js')
|
|
|
|
navigator.serviceWorker.register('/service-worker.js')
|
|
|
|
.then(function () {
|
|
|
|
.then(function () {
|
|
|
|
console.log('ServiceWorker registration succeeded.');
|
|
|
|
console.info('ServiceWorker registration succeeded.');
|
|
|
|
}).catch(function (err) {
|
|
|
|
}).catch(function (err) {
|
|
|
|
console.log('ServiceWorker registration failed: ', err);
|
|
|
|
console.info('ServiceWorker registration failed: ', err);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|