From 3dad24844703985d7250beb6669384358d5cbe46 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Wed, 28 Oct 2020 22:35:54 +0100 Subject: [PATCH] #91 fixed comment --- src/javascript/enhancements/watch2getherChat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/javascript/enhancements/watch2getherChat.js b/src/javascript/enhancements/watch2getherChat.js index 7e29f80..c173f87 100644 --- a/src/javascript/enhancements/watch2getherChat.js +++ b/src/javascript/enhancements/watch2getherChat.js @@ -51,10 +51,10 @@ function updateCharCounter(textarea, charCounterSpan) { charCounterSpan.innerText = `${current} / ${max}`; // animation if at max - // this need to be delayed because removing and adding it too fast again will prevent the browsers to replay the animation if (current >= max && !charCounterSpan.classList.contains(SHAKE_CLASS)) { charCounterSpan.classList.add(SHAKE_CLASS); + // remove css class after animation finished, so it can be restarted again setTimeout(() => { charCounterSpan.classList.remove(SHAKE_CLASS); }, 200);