mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-02-02 11:48:25 +00:00
5e526fb000
The current check for `count` means the value to reset/remove the badge (`''`) is treated as `false` and therefore the badge does not get removed. This PR changes the check for `undefined` instead which resolves the issue. Related issue: https://github.com/nativefier/nativefier/issues/1251 Testing performed: - I ran `npm t` as per the docs. All tests passed. - I created a new app build for Twitter (`https://twitter.com`) and Messenger (`https://messenger.com`) to verify the correct behaviour. Both were showed the issue as resolved. Co-authored-by: Ronan Jouchet <ronan@jouchet.fr>