diff --git a/themes/DeepThought/static/js/site.js b/themes/DeepThought/static/js/site.js index bc0fca2..cc195c0 100644 --- a/themes/DeepThought/static/js/site.js +++ b/themes/DeepThought/static/js/site.js @@ -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;