This commit is contained in:
Miodec 2022-10-15 11:43:10 +02:00
parent 1344c600d8
commit 476f39ca72

View file

@ -72,7 +72,7 @@ if ("serviceWorker" in navigator) {
window.addEventListener("load", () => {
// disabling service workers on localhost - they dont really work well with local development
// and cause issues with hot reloading
if (window.location.hostname === "localhos") {
if (window.location.hostname === "localhost") {
navigator.serviceWorker.getRegistrations().then(function (registrations) {
for (const registration of registrations) {
// if (registration.scope !== "https://monkeytype.com/")