Update javascript/tagAutocomplete.js

Co-authored-by: DominikDoom <34448969+DominikDoom@users.noreply.github.com>
pull/313/head
undefined 2025-01-15 19:04:56 +08:00 committed by GitHub
parent 53d6d2d21f
commit f0cab5312c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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)