From 6835d16b44e3822057e90f8b99206227b218ff48 Mon Sep 17 00:00:00 2001 From: anarsec Date: Thu, 6 Jul 2023 19:16:43 +0000 Subject: [PATCH] toc js update --- themes/DeepThought/static/js/site.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;