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("load", () => {
|
||||||
|
if (CONTENT && SCROLL_INDICATOR) {
|
||||||
window.addEventListener("resize", handleScrollIndicator);
|
window.addEventListener("resize", handleScrollIndicator);
|
||||||
window.addEventListener("scroll", handleScrollIndicator);
|
window.addEventListener("scroll", handleScrollIndicator);
|
||||||
|
|
||||||
GLightbox({});
|
|
||||||
|
|
||||||
// Initialize the indicator
|
// Initialize the indicator
|
||||||
handleScrollIndicator();
|
handleScrollIndicator();
|
||||||
|
}
|
||||||
|
|
||||||
|
GLightbox({});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue