Skip to content

Commit

Permalink
hide button on 0 quote tweets
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Sep 11, 2023
1 parent 2842768 commit 45b5da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/tweetviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ class TweetViewer {
this.currentLocation = location.pathname;
});
}
if(!this.retweetCommentsCursor) {
if(!this.retweetCommentsCursor || tweetRetweeters.length === 0) {
this.container.getElementsByClassName('retweets_with_comments-more')[0].hidden = true;
} else {
this.container.getElementsByClassName('retweets_with_comments-more')[0].hidden = false;
Expand Down

0 comments on commit 45b5da6

Please sign in to comment.