Index: lib/stats.js |
=================================================================== |
--- a/lib/stats.js |
+++ b/lib/stats.js |
@@ -62,20 +62,21 @@ |
color: badgeColor, |
number: blocked |
}); |
} |
}); |
Prefs.on("show_statsinicon", () => |
{ |
- ext.pages.query({}, pages => |
+ chrome.tabs.query({}, tabs => |
{ |
- for (let page of pages) |
+ for (let tab of tabs) |
{ |
+ let page = new ext.Page(tab); |
let badge = null; |
if (Prefs.show_statsinicon) |
{ |
let blocked = blockedPerPage.get(page); |
if (blocked) |
{ |
badge = { |