Skip to content

Commit

Permalink
better fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Sep 24, 2023
1 parent fb0c89e commit 7c38957
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/home/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ function fixTweetThreadLine() {
let tweet = tweets[i];
let tweet2 = tweets[i + 1];
if(!tweet2) continue;
if(tweet.tweet.threadContinuation && !tweet2.tweet.noTop) {
delete tweet2.tweet.threadContinuation;
if(tweet.classList.contains('tweet-self-thread-continuation') && !tweet2.classList.contains('tweet-no-top')) {
tweet.getElementsByClassName('tweet-self-thread-div')[0].hidden = true;
tweet.classList.remove('tweet-self-thread-continuation');
}
}
}
Expand Down

0 comments on commit 7c38957

Please sign in to comment.