| Index: lib/stats.js |
| diff --git a/lib/stats.js b/lib/stats.js |
| index ae586b8f0989cc15b3da1271051b629ac8b6b380..887118ac50a2c9730350809dbc473d8b6591a23b 100644 |
| --- a/lib/stats.js |
| +++ b/lib/stats.js |
| @@ -41,13 +41,16 @@ exports.getBlockedPerPage = page => blockedPerPage.get(page) || 0; |
| // blocked beforehand we display those on the badge now. |
| browser.webNavigation.onCommitted.addListener(details => |
| { |
| - let page = new ext.Page({id: details.tabId}); |
| - let blocked = blockedPerPage.get(page); |
| + if (details.frameId == 0) |
| + { |
| + let page = new ext.Page({id: details.tabId}); |
| + let blocked = blockedPerPage.get(page); |
| - page.browserAction.setBadge(blocked && { |
| - color: badgeColor, |
| - number: blocked |
| - }); |
| + page.browserAction.setBadge(blocked && { |
| + color: badgeColor, |
| + number: blocked |
| + }); |
| + } |
| }); |
| FilterNotifier.on("filter.hitCount", (filter, newValue, oldValue, page) => |