diff --git a/js/toc.js b/js/toc.js index 02c27200..5ed0bed1 100644 --- a/js/toc.js +++ b/js/toc.js @@ -2,7 +2,6 @@ window.addEventListener('DOMContentLoaded', (event) => { const article = document.querySelector("article"); const headings = article.querySelectorAll("h2, h3"); const toc = document.querySelector(".toc"); - const tocSidebar = document.querySelector(".sidebar__toc"); const totalHeadings = headings.length; let tocOl = document.createElement("ol"); let tocFragment = new DocumentFragment();