Skip to content

Commit

Permalink
Fixed the bug where spam count was not being ignored
Browse files Browse the repository at this point in the history
Replaced innerText with innerHTML
  • Loading branch information
taralika authored Dec 8, 2020
1 parent a87085a commit fbdbb5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion counter.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function updateBadgeCount()
{
// ignore the unreads in spam
// previousElementSibling is of class navItemLabel and has the name of the section in it (e.g., " Spam ")
if (targetNodes[i].previousElementSibling.innerText.trim().toLowerCase().localeCompare("spam") == 0)
if (targetNodes[i].previousElementSibling.innerHTML.trim().toLowerCase().localeCompare("spam") == 0)
{
continue;
}
Expand Down

0 comments on commit fbdbb5f

Please sign in to comment.