This commit is contained in:
Nuno Coração 2023-05-23 12:46:12 +01:00
parent bdd1c3f136
commit f11c652362

View file

@ -95,7 +95,7 @@ var getTargetAppearance = () => {
window.addEventListener("DOMContentLoaded", (event) => {
const scroller = document.getElementById("top-scroller");
const footer = document.getElementById("site-footer");
if(scroller.getBoundingClientRect().top > footer.getBoundingClientRect().top) {
if(scroller && footer && scroller.getBoundingClientRect().top > footer.getBoundingClientRect().top) {
scroller.hidden = true;
}
});