diff options
author | Ev Bogue <ev@evbogue.com> | 2019-11-23 10:17:12 -0600 |
---|---|---|
committer | Ev Bogue <ev@evbogue.com> | 2019-11-23 10:17:12 -0600 |
commit | 0eb66af71c4e1ad3bad82aabc560c69835f2c48c (patch) | |
tree | 53b9e2fa7581938fca5a7fc5911afa15b39efe06 | |
parent | 40738076eedb3ba864d3188e66d00df830575c59 (diff) |
I think this fixes a rendering artifact
-rw-r--r-- | views.js | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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"); } } |