diff --git a/legacy.html b/legacy.html index 9a03003..9b9e4bd 100644 --- a/legacy.html +++ b/legacy.html @@ -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 - : "

About

Missing proper structure

"; + if (section) { + target.innerHTML = ` +
+ ${section.innerHTML} +
+ `; + } else { + target.innerHTML = "

About

Missing #aboutSection

"; + } }) .catch(err => { console.error(err);