mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-25 06:47:16 +00:00
Attempt to fix syntax error for toc js
This commit is contained in:
parent
72e5b93489
commit
3b7efc748f
|
@ -36,7 +36,7 @@ function ScrollSpy() {
|
|||
sections[section].offsetTop <= scrollPos
|
||||
) {
|
||||
id = mw.util.escapeIdForAttribute(sections[section].id);
|
||||
node = document.querySelector("a[href * = '" + id + "']").parentNode;
|
||||
node = document.querySelector("a[href * = '#" + id + "']").parentNode;
|
||||
active = document.querySelector(".active");
|
||||
if (active !== null) {
|
||||
active.classList.remove("active");
|
||||
|
|
Loading…
Reference in a new issue