2,963
edits
Efernandez (talk | contribs) No edit summary |
Efernandez (talk | contribs) No edit summary |
||
Line 244: | Line 244: | ||
var currentPage = window.location.pathname.split('/').pop(); // Get the current page name | var currentPage = window.location.pathname.split('/').pop(); // Get the current page name | ||
var links = document.querySelectorAll('.wiki-toc-list a'); | var links = document.querySelectorAll('.wiki-toc-list a'); | ||
console.log(currentPage); | |||
links.forEach(function (link) { | links.forEach(function (link) { |