diff --git a/counter.js b/counter.js index e4aa56e..ea4bea8 100644 --- a/counter.js +++ b/counter.js @@ -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; }