Skip to content

Commit

Permalink
Enable badge when network is fine
Browse files Browse the repository at this point in the history
Fix #6
  • Loading branch information
AngelFQC committed Feb 6, 2018
1 parent dbc98c6 commit 0e0674c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ function update() {
throw new Error(response.statusText);
})
.then((notifications) => {
browser.browserAction.enable();

if (0 === notifications.length) {
browser.browserAction.setBadgeText({
text: ''
Expand Down

0 comments on commit 0e0674c

Please sign in to comment.