chore: fixes

This commit is contained in:
MattTheTekie 2026-04-23 18:03:44 -04:00
commit 0573b4ad75

View file

@ -127,11 +127,17 @@ function showAbout(event) {
const temp = document.createElement("div");
temp.innerHTML = html;
const section = temp.querySelector("#aboutSection .home-text");
const section = temp.querySelector("#aboutSection");
target.innerHTML = section
? section.innerHTML
: "<h2>About</h2><p>Missing proper structure</p>";
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>";
}
})
.catch(err => {
console.error(err);