chore: fixes

This commit is contained in:
MattTheTekie 2026-04-23 18:07:22 -04:00
commit bacf4cfcb2

View file

@ -127,17 +127,11 @@ function showAbout(event) {
const temp = document.createElement("div");
temp.innerHTML = html;
const section = temp.querySelector("#aboutSection");
const section = temp.querySelector("article.home-text.text-containers-secondary-bg");
if (section) {
target.innerHTML = `
<div class="home-text text-containers-secondary-bg">
${section.innerHTML}
</div>
`;
} else {
target.innerHTML = "<h2>About</h2><p>Missing #aboutSection</p>";
}
target.innerHTML = section
? section.innerHTML
: "<h2>About</h2><p>Missing article.home-text.text-containers-secondary-bg in about.html</p>";
})
.catch(err => {
console.error(err);