toc js update

This commit is contained in:
anarsec 2023-07-06 19:16:43 +00:00
parent c2827a1522
commit 6835d16b44
No known key found for this signature in database

View file

@ -22,7 +22,8 @@
}
function activateIfVisible() {
for (b = true, i = 0; i < tocItems.length; i++) {
let b = true;
for (let i = 0; i < tocItems.length; i++) {
if (b && isVisible(i)) {
tocItems[i].classList.add('is-active');
b = false;