Fix JS bug
This commit is contained in:
parent
61c2e018d0
commit
a611fc1789
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue