Skip to content

Commit

Permalink
Fix wiki links showing on embeddings & wildcards
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikDoom committed Jan 13, 2023
1 parent bec222f commit c663abc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion javascript/tagAutocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,9 @@ function addResultsToList(textArea, results, tagword, resetList) {
itemText.innerHTML = displayText.replace(tagword, `<b>${tagword}</b>`);

// Add wiki link if the setting is enabled and a supported tag set loaded
if (CFG.showWikiLinks && (tagFileName.toLowerCase().startsWith("danbooru") || tagFileName.toLowerCase().startsWith("e621"))) {
if (CFG.showWikiLinks
&& (result.type === ResultType.tag)
&& (tagFileName.toLowerCase().startsWith("danbooru") || tagFileName.toLowerCase().startsWith("e621"))) {
let wikiLink = document.createElement("a");
wikiLink.classList.add("acWikiLink");
wikiLink.innerText = "?";
Expand Down

0 comments on commit c663abc

Please sign in to comment.