From f0cab5312c30be2596a9717befc64962dc8e7e1f Mon Sep 17 00:00:00 2001 From: undefined <33629016+magicFeirl@users.noreply.github.com> Date: Wed, 15 Jan 2025 19:04:56 +0800 Subject: [PATCH] Update javascript/tagAutocomplete.js Co-authored-by: DominikDoom <34448969+DominikDoom@users.noreply.github.com> --- javascript/tagAutocomplete.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/tagAutocomplete.js b/javascript/tagAutocomplete.js index b4fbcd9..be089a5 100644 --- a/javascript/tagAutocomplete.js +++ b/javascript/tagAutocomplete.js @@ -858,8 +858,8 @@ function addResultsToList(textArea, results, tagword, resetList) { flexDiv.title = "✨ Frequent tag. Ctrl/Cmd + click to reset usage count." } - // Add 🔁 to indicate if has existed tag - if(IS_DAN_OR_E621_TAG_FILE && tagCount[result.text] >= 1) { + // Add 🔁 to indicate if tag was used before + if (IS_DAN_OR_E621_TAG_FILE && tagCount[result.text] >= 1) { const textNode = flexDiv.querySelector(".acMetaText") const span = document.createElement("span") textNode.insertBefore(span, textNode.firstChild)