From e68d9ece36c949dab61d3ffd2ab308604ee3dd0a Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 14 Mar 2022 02:02:44 +0100 Subject: [PATCH] lowered batching to 500ms --- frontend/src/scripts/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/scripts/config.ts b/frontend/src/scripts/config.ts index de5fc93e3..48bbd2ae6 100644 --- a/frontend/src/scripts/config.ts +++ b/frontend/src/scripts/config.ts @@ -68,7 +68,7 @@ async function saveToDatabase(key: keyof MonkeyTypes.Config): Promise { clearTimeout(saveTimeout as NodeJS.Timeout); saveTimeout = null; }, - window.location.hostname === "localhost" ? 0 : 3000 + window.location.hostname === "localhost" ? 0 : 500 ); } }