From 614af39e26ee3f247e5b7a53fcedad529c7f0456 Mon Sep 17 00:00:00 2001 From: alexisben <alex@noesya.coop> Date: Mon, 13 Mar 2023 09:47:55 +0100 Subject: [PATCH] cleanup js --- assets/js/theme/design-system/toc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/theme/design-system/toc.js b/assets/js/theme/design-system/toc.js index 233156be..a2b7cc81 100644 --- a/assets/js/theme/design-system/toc.js +++ b/assets/js/theme/design-system/toc.js @@ -105,7 +105,7 @@ class TableOfContents { } activateLink(id) { const currentLink = this.element.querySelector(`[href*=${ id }]`); - // console.log(currentLink.hash) + this.links.forEach((link, index) => { if (link == currentLink) { link.classList.add(CLASSES.linkActive); -- GitLab