chore: yeet service workers when in dev environment

This commit is contained in:
Miodec 2024-02-22 17:13:53 +01:00
parent f1c620ee51
commit 0b25148fb9

View file

@ -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 {