diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2023-02-02 11:35:10 -0500 |
---|---|---|
committer | Tyler Murphy <tylermurphy534@gmail.com> | 2023-02-02 11:35:10 -0500 |
commit | 556cbdf16898de7603b9f1c18e0ef07b379be59f (patch) | |
tree | 3649325fbc4e408e3914b42f0b1b4b934d1411c5 | |
parent | dont commit rate limit (diff) | |
download | xssbook-556cbdf16898de7603b9f1c18e0ef07b379be59f.tar.gz xssbook-556cbdf16898de7603b9f1c18e0ef07b379be59f.tar.bz2 xssbook-556cbdf16898de7603b9f1c18e0ef07b379be59f.zip |
dont show load posts button if no posts
-rw-r--r-- | public/js/profile.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/public/js/profile.js b/public/js/profile.js index 40e6354..bde0654 100644 --- a/public/js/profile.js +++ b/public/js/profile.js @@ -93,8 +93,9 @@ function render() { </div> ` - - append(postsh) + if (data.posts.length > 0) { + append(postsh) + } const about = ` <div id="about" class="post ${posts ? 'hidden' : ''}"> |