remove prints

This commit is contained in:
Michael Zhang 2023-09-01 20:59:39 -05:00
parent a670600ad7
commit 89ece03307

View file

@ -76,7 +76,6 @@ const minDepth = Math.min(...headings.map((heading) => heading.depth));
// if it wasn't previously visible // if it wasn't previously visible
// let's make the link active // let's make the link active
if (associatedEls.size === 0) { if (associatedEls.size === 0) {
console.log("SHIET", link);
link.parentNode.classList.add("active"); link.parentNode.classList.add("active");
} }
@ -96,7 +95,6 @@ const minDepth = Math.min(...headings.map((heading) => heading.depth));
}); });
const postContentEl = document.getElementById("post-content"); const postContentEl = document.getElementById("post-content");
console.log("content", postContentEl);
let belongsTo; let belongsTo;
for (const child of postContentEl.children) { for (const child of postContentEl.children) {
@ -111,9 +109,6 @@ const minDepth = Math.min(...headings.map((heading) => heading.depth));
} }
} }
console.log("headings map", headingsMap);
console.log("reverse", reverseHeadingMap);
[...headingsMap.values()] [...headingsMap.values()]
.flatMap((x) => [...x]) .flatMap((x) => [...x])
.forEach((x) => { .forEach((x) => {