diff --git a/frontend/src/ts/ready.ts b/frontend/src/ts/ready.ts index 24b401fd0..9554990b7 100644 --- a/frontend/src/ts/ready.ts +++ b/frontend/src/ts/ready.ts @@ -92,6 +92,16 @@ $(document).ready(() => { MonkeyPower.init(); new Konami("https://keymash.io/"); + + if (Misc.isDevEnvironment()) { + void navigator.serviceWorker + .getRegistrations() + .then(function (registrations) { + for (const registration of registrations) { + void registration.unregister(); + } + }); + } }); window.onerror = function (message, url, line, column, error): void {