Skip to content

Commit

Permalink
feat: hide no comment notifs
Browse files Browse the repository at this point in the history
  • Loading branch information
zugdev committed Jan 8, 2025
1 parent 5c95353 commit e8abe66
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/home/rendering/render-github-notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ async function updateLatestCommentUrls(notificationsToUpdate: { element: HTMLEle
const issueElement = element.querySelector(".issue-element-inner");
const previewElement = issueElement?.querySelector(".latest-comment-preview");

// hide no comment notifications
if (!commentBody) {
element.style.display = "none";
}

if(previewElement){
const commentPreviewDiv = document.createElement("div");
commentPreviewDiv.classList.add("comment-preview");
Expand Down

0 comments on commit e8abe66

Please sign in to comment.