diff --git a/client/js/views/endless_page_view.js b/client/js/views/endless_page_view.js index 17282f0..795c2da 100644 --- a/client/js/views/endless_page_view.js +++ b/client/js/views/endless_page_view.js @@ -37,7 +37,7 @@ class EndlessPageView { } let topPageNode = null; - var element = document.elementFromPoint(window.innerWidth / 2, 1); + let element = document.elementFromPoint(window.innerWidth / 2, 1); while (element.parentNode !== null) { if (element.classList.contains('page')) { topPageNode = element;