Also fix dark mode detection for tag colors

This commit is contained in:
DominikDoom
2023-05-02 12:30:04 +02:00
parent f4572469c1
commit a2e7b6bf6c

View File

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