|
|
@ -799,7 +799,8 @@ app.cacheBuster = null;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
function registerServiceWorker() {
|
|
|
|
function registerServiceWorker() {
|
|
|
|
if ('serviceWorker' in navigator) {
|
|
|
|
// Do not register for Safari browsers
|
|
|
|
|
|
|
|
if (!ajaxify.data._locals.useragent.isSafari && 'serviceWorker' in navigator) {
|
|
|
|
navigator.serviceWorker.register(config.relative_path + '/service-worker.js', { scope: config.relative_path + '/' })
|
|
|
|
navigator.serviceWorker.register(config.relative_path + '/service-worker.js', { scope: config.relative_path + '/' })
|
|
|
|
.then(function () {
|
|
|
|
.then(function () {
|
|
|
|
console.info('ServiceWorker registration succeeded.');
|
|
|
|
console.info('ServiceWorker registration succeeded.');
|
|
|
|