fix: do not register SW for Safari until upstream fixes #9193

v1.18.x
gasoved 4 years ago committed by Andrew Rodrigues
parent cb1dd0a3db
commit ce5fea2abd

@ -799,7 +799,8 @@ app.cacheBuster = null;
};
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 + '/' })
.then(function () {
console.info('ServiceWorker registration succeeded.');

Loading…
Cancel
Save