From 59025c6118267f2773ac4ac43d30f3fe83568785 Mon Sep 17 00:00:00 2001 From: Lukas Seyfarth Date: Thu, 27 Jun 2024 17:37:49 +0800 Subject: [PATCH] disable debounce --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 5c8314a..c90cf73 100644 --- a/index.js +++ b/index.js @@ -855,10 +855,10 @@ async function getTranslations(apiKey, optsArgs = {}) { if (elements.length && optsArgs.createSelector) { createLanguageSelect(apiKey, optsArgs).then(() => { - if (nodes.length) startTranslationCycle(document.body, apiKey, 2000).catch(reject) + if (nodes.length) startTranslationCycle(document.body, apiKey, 0).catch(reject) }); } else { - if (nodes.length) startTranslationCycle(document.body, apiKey, 2000).catch(reject) + if (nodes.length) startTranslationCycle(document.body, apiKey, 0).catch(reject) } });