diff --git a/app/assets/javascripts/discourse/initializers/register-service-worker.js.es6 b/app/assets/javascripts/discourse/initializers/register-service-worker.js.es6 index 52838c2ed45..26d19206ffe 100644 --- a/app/assets/javascripts/discourse/initializers/register-service-worker.js.es6 +++ b/app/assets/javascripts/discourse/initializers/register-service-worker.js.es6 @@ -7,17 +7,10 @@ export default { location.hostname === "localhost"; const isSupported = isSecured && "serviceWorker" in navigator; + const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent); if (isSupported) { - const isSafari = /^((?!chrome|android).)*safari/i.test( - navigator.userAgent - ); - - const disableServiceWorker = window.location.search.includes( - "disable_service_worker" - ); - - if (Discourse.ServiceWorkerURL && !isSafari && !disableServiceWorker) { + if (Discourse.ServiceWorkerURL && !isSafari) { navigator.serviceWorker.getRegistrations().then(registrations => { for (let registration of registrations) { if (