Fix linter error

pull/55/head
neobooru 2023-09-03 14:42:05 +02:00
parent 63d88dc7e5
commit 237fe88f1c
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ export function refreshTagCategoryColorMap(tagCategories: TagCategoryColor[], st
}
styleElement = document.createElement("style");
document.head.appendChild(styleElement);
for (let category of tagCategories) {
for (const category of tagCategories) {
const ruleName = makeCssName("tag", category.name);
styleElement.sheet!.insertRule(`.${ruleName} { color: ${category.color} }`, styleElement.sheet!.cssRules.length);
console.log("adding " + category);