mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-26 15:54:35 +08:00
chore: yeet service workers when in dev environment
This commit is contained in:
parent
f1c620ee51
commit
0b25148fb9
1 changed files with 10 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue