Skip to content

Commit

Permalink
Also fix dark mode detection for tag colors
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikDoom committed May 2, 2023
1 parent f457246 commit a2e7b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/tagAutocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ function addResultsToList(textArea, results, tagword, resetList) {
// Find right colors from config
let tagFileName = CFG.tagFile.split(".")[0];
let tagColors = CFG.colorMap;
let mode = gradioApp().querySelector('.dark') ? 0 : 1;
let mode = document.querySelector('.dark') ? 0 : 1;
let nextLength = Math.min(results.length, resultCount + CFG.resultStepLength);

for (let i = resultCount; i < nextLength; i++) {
Expand Down

0 comments on commit a2e7b6b

Please sign in to comment.