diff --git a/modules/backend/layouts/_head.htm b/modules/backend/layouts/_head.htm index 822cdae83..d4b2518b8 100644 --- a/modules/backend/layouts/_head.htm +++ b/modules/backend/layouts/_head.htm @@ -56,15 +56,16 @@ /* Only run on HTTPS connections * Block off Front-end Service Worker from running in the Backend allowing security injections, see GitHub #4384 */ - if (location.protocol === 'https:') { - // Unregister all service workers before signing in to prevent cache issues, see github issue: #3707 - navigator.serviceWorker.getRegistrations().then( - function(registrations) { - for (let registration of registrations) { - registration.unregister(); - } - }); - } + if (location.protocol === 'https:') { + // Unregister all service workers before signing in to prevent cache issues, see github issue: #3707 + navigator.serviceWorker.getRegistrations().then( + function(registrations) { + for (let registration of registrations) { + registration.unregister(); + } + } + ); + } diff --git a/modules/backend/layouts/auth.htm b/modules/backend/layouts/auth.htm index e28b2e555..5b66888aa 100644 --- a/modules/backend/layouts/auth.htm +++ b/modules/backend/layouts/auth.htm @@ -41,17 +41,18 @@