diff --git a/background/background.js b/background/background.js index 2f2835d5..a3542665 100644 --- a/background/background.js +++ b/background/background.js @@ -42,9 +42,11 @@ window.API_METHODS = Object.assign(window.API_METHODS || {}, { // Chrome 49 doesn't report own extension pages in webNavigation apparently // so we do a force update which doesn't use the cache. if (CHROME && CHROME < 2661 && this.sender.tab.url.startsWith(URLS.ownOrigin)) { - return updateIconBadgeForce(this.sender.tab.id, count); + updateIconBadgeForce(this.sender.tab.id, count); + } else { + updateIconBadge(this.sender.tab.id, count); } - return updateIconBadge(this.sender.tab.id, count); + return true; }, // exposed for stuff that requires followup sendMessage() like popup::openSettings diff --git a/content/apply.js b/content/apply.js index 0ff751a6..307d812b 100644 --- a/content/apply.js +++ b/content/apply.js @@ -299,7 +299,7 @@ const APPLY = (() => { method: 'invokeAPI', name: 'updateIconBadge', args: [count] - }).catch(msg.ignoreError); + }).catch(console.error); } function applyStyleState({id, enabled}) {