small change

This commit is contained in:
florian 2025-09-05 14:31:06 +02:00
parent 22bda4ee9a
commit 31897391d3

View File

@ -16,10 +16,10 @@ async function loadHeaderFooter() {
const myAccountTemplate = document.getElementById('my-account-template');
if (isLoggedIn) {
headerElement.innerHTML += myAccountTemplate.content.cloneNode(true);
headerElement.appendChild(myAccountTemplate.content.cloneNode(true));
}
else {
headerElement.innerHTML += loginTemplate.content.cloneNode(true);
headerElement.appendChild(loginTemplate.content.cloneNode(true));
}
const footerResponse = await fetch('https://commonhtml.thepenguinontheweb.tech/footer-snippet.html');