chore: fixes
This commit is contained in:
parent
0573b4ad75
commit
bacf4cfcb2
1 changed files with 5 additions and 11 deletions
14
legacy.html
14
legacy.html
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue