no config save pooling on localhost

This commit is contained in:
Miodec 2022-03-14 00:37:33 +01:00
parent c6de5c98ae
commit c232d3f0ba

View file

@ -66,7 +66,7 @@ async function saveToDatabase(key: keyof MonkeyTypes.Config): Promise<void> {
configToSend = {} as MonkeyTypes.Config;
clearTimeout(saveTimeout as NodeJS.Timeout);
saveTimeout = null;
}, 3000);
}, window.location.hostname === "localhost" ? 0 : 3000);
}
}