From e358f7c18febd49b3beebf6f32a219fe3d2b5cb8 Mon Sep 17 00:00:00 2001 From: Thomas Lynch Date: Fri, 25 Dec 2020 22:01:17 +0000 Subject: [PATCH] typo, bug in scroll to new posts --- gulp/res/js/live.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulp/res/js/live.js b/gulp/res/js/live.js index 56ce240a..0cdbe2d6 100644 --- a/gulp/res/js/live.js +++ b/gulp/res/js/live.js @@ -92,7 +92,7 @@ window.addEventListener('settingsReady', function(event) { //after domcontentloa const newPostAnchor = document.getElementById(postData.postId); const newPost = newPostAnchor.nextSibling; if (scrollEnabled) { - if (globalManageRecent) { + if (isGlobalRecent) { window.scrollTo(0, 0); //recent pages are reverse sort, so just go to top } else { newPostAnchor.scrollIntoView(); //scroll to post if enabled;