From f11c65236234c0bfe15f4549d2f6a6d56de4f2e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Tue, 23 May 2023 12:46:12 +0100 Subject: [PATCH] fixed #722 --- assets/js/appearance.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/appearance.js b/assets/js/appearance.js index 34ee826f..1da4b69f 100644 --- a/assets/js/appearance.js +++ b/assets/js/appearance.js @@ -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; } });