Index: lib/stats.js |
=================================================================== |
--- a/lib/stats.js |
+++ b/lib/stats.js |
@@ -34,6 +34,14 @@ |
*/ |
exports.getBlockedPerPage = page => blockedPerPage.get(page) || 0; |
+// Chrome automatically clears the browser action badge text when the URL of |
+// the tab is updated, but Firefox doesn't. |
+// https://bugzilla.mozilla.org/show_bug.cgi?id=1395074 |
+ext.pages.onLoading.addListener(page => |
+{ |
+ page.browserAction.setBadge(); |
+}); |
+ |
FilterNotifier.on("filter.hitCount", (filter, newValue, oldValue, page) => |
{ |
if (!(filter instanceof BlockingFilter) || !page) |