Skip to content

Commit

Permalink
[Glitch] Change language detection debouncing behavior to refresh at …
Browse files Browse the repository at this point in the history
…least once every 1.5 seconds

Port 85668be to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
  • Loading branch information
ClearlyClaire committed Jan 29, 2025
1 parent 2c97a59 commit 73f599a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ const guessLanguage = (text) => {

export const debouncedGuess = debounce((text, setGuess) => {
setGuess(guessLanguage(text));
}, 500, { leading: true, trailing: true });
}, 500, { maxWait: 1500, leading: true, trailing: true });

0 comments on commit 73f599a

Please sign in to comment.