From 237fe88f1cb9e7268aef3e6832286e7c31b154f7 Mon Sep 17 00:00:00 2001 From: neobooru <50623835+neobooru@users.noreply.github.com> Date: Sun, 3 Sep 2023 14:42:05 +0200 Subject: [PATCH] Fix linter error --- src/dynamicStyle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dynamicStyle.ts b/src/dynamicStyle.ts index 17747fa..263580b 100644 --- a/src/dynamicStyle.ts +++ b/src/dynamicStyle.ts @@ -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);