From c2ff0c42c5e6137484583d3334cd641ead6f0ceb Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 14 Mar 2022 22:43:57 +0100 Subject: [PATCH] increased config batching to 1 second --- 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 48bbd2ae6..c4fd6cf76 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 : 500 + window.location.hostname === "localhost" ? 0 : 1000 ); } }