Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

Commit

Permalink
[NEU-142] Fix badge count support isn't fully compatible with new Gma…
Browse files Browse the repository at this point in the history
…il UI (2) (#840)
  • Loading branch information
quanglam2807 committed Mar 22, 2022
1 parent 567cffb commit 7ace00b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main-src/libs/view-preload/recipes/gmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ window.addEventListener('load', () => {
if (primaryBadgeNode) {
// primaryBadgeNode.innerText return empty string if primaryBadgeNode is hidden
const parsedNum = parseInt(primaryBadgeNode.innerText || primaryBadgeNode.innerHTML, 10);
if (typeof parsedNumber === 'number' && !Number.isNaN(parsedNum)) {
if (typeof parsedNum === 'number' && !Number.isNaN(parsedNum)) {
count = parsedNum;
}
}
Expand Down

0 comments on commit 7ace00b

Please sign in to comment.