Account for content pages without content or a scroll indicator
This commit is contained in:
parent
3984660e2b
commit
e0ffa6a14d
1 changed files with 7 additions and 5 deletions
|
@ -23,11 +23,13 @@ function handleScrollIndicator() {
|
|||
}
|
||||
|
||||
window.addEventListener("load", () => {
|
||||
window.addEventListener("resize", handleScrollIndicator);
|
||||
window.addEventListener("scroll", handleScrollIndicator);
|
||||
if (CONTENT && SCROLL_INDICATOR) {
|
||||
window.addEventListener("resize", handleScrollIndicator);
|
||||
window.addEventListener("scroll", handleScrollIndicator);
|
||||
|
||||
// Initialize the indicator
|
||||
handleScrollIndicator();
|
||||
}
|
||||
|
||||
GLightbox({});
|
||||
|
||||
// Initialize the indicator
|
||||
handleScrollIndicator();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue