Fix JS bug

This commit is contained in:
MatthiasSaihttam 2021-09-01 20:06:15 -04:00
parent 61c2e018d0
commit a611fc1789
1 changed files with 17 additions and 15 deletions

View File

@ -61,6 +61,7 @@
for (let el of els) {
const extended = el.querySelector(".extended");
if (extended) {
//Hide extended text
extended.classList.add("hidden");
//Add button to show extended text
@ -78,6 +79,7 @@
main.appendChild(showMoreButton);
}
}
}
const highlighted = document.querySelector(".highlighted");
if (highlighted) {