refactor: Improve for...of

This commit is contained in:
sthag 2026-04-04 11:11:32 +02:00
parent afcb06a808
commit e698161a2d
2 changed files with 7 additions and 7 deletions

View file

@ -231,7 +231,7 @@ tags:
const groupTarget = event.target.closest('[name="group"]');
if (rowTarget && event.button === 0) {
for (row of rows) {
for (const row of rows) {
row.classList.remove('active');
}
@ -296,7 +296,7 @@ tags:
const cells = content.querySelectorAll('th:first-child');
const isHidden = cells[0].classList.contains('di_none');
for (cell of cells) {
for (const cell of cells) {
if (isHidden) {
cell.classList.remove('di_none');
} else {