Skip to content

Commit

Permalink
disable debounce
Browse files Browse the repository at this point in the history
  • Loading branch information
jemikanegara committed Jun 27, 2024
1 parent b24d877 commit 59025c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
});

Expand Down

0 comments on commit 59025c6

Please sign in to comment.