From 0eb66af71c4e1ad3bad82aabc560c69835f2c48c Mon Sep 17 00:00:00 2001 From: Ev Bogue Date: Sat, 23 Nov 2019 10:17:12 -0600 Subject: I think this fixes a rendering artifact --- views.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/views.js b/views.js index 854c7ba..333db18 100644 --- a/views.js +++ b/views.js @@ -26,7 +26,6 @@ function profilePage (src, keys) { } timer() - profile.appendChild(h('a', {href: '#' + src}, [ getImage(src, keys, 'profileAvatar'), getName(src, keys) @@ -96,7 +95,9 @@ function profilePage (src, keys) { if ((window.innerHeight + window.scrollY) >= document.body.scrollHeight) { posts = log.slice(index, index + 25) index = index + 25 - addPosts(posts, keys) + if (src === window.location.hash.substring(1)) { + addPosts(posts, keys) + } console.log("Bottom of page"); } } @@ -177,7 +178,9 @@ function publicPage (keys) { if ((window.innerHeight + window.scrollY) >= document.body.scrollHeight) { posts = log.slice(index, index + 25) index = index + 25 - addPosts(posts, keys) + if ('' === window.location.hash.substring(1)) { + addPosts(posts, keys) + } console.log("Bottom of page"); } } -- cgit v1.2.3-70-g09d2