Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/stats.js

Issue 29877564: Issue 6933 - Update adblockpluscore dependency to hg:dcda4859fcbd (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Rebase on next and update adblockplusui dependency Created Sept. 11, 2018, 1:40 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/stats.js
===================================================================
--- a/lib/stats.js
+++ b/lib/stats.js
@@ -16,17 +16,17 @@
*/
/** @module stats */
"use strict";
const {Prefs} = require("./prefs");
const {BlockingFilter} = require("../adblockpluscore/lib/filterClasses");
-const {FilterNotifier} = require("../adblockpluscore/lib/filterNotifier");
+const {filterNotifier} = require("../adblockpluscore/lib/filterNotifier");
const {port} = require("./messaging");
const badgeColor = "#646464";
let blockedPerPage = new ext.PageMap();
let getBlockedPerPage =
/**
* Gets the number of requests blocked on the given page.
@@ -56,17 +56,17 @@
{
let page = new ext.Page({id: details.tabId});
let blocked = blockedPerPage.get(page);
updateBadge(page, blocked);
}
});
-FilterNotifier.on("filter.hitCount", (filter, newValue, oldValue, tabIds) =>
+filterNotifier.on("filter.hitCount", (filter, newValue, oldValue, tabIds) =>
{
if (!(filter instanceof BlockingFilter))
return;
for (let tabId of tabIds)
{
let page = new ext.Page({id: tabId});
let blocked = blockedPerPage.get(page) || 0;
« lib/requestBlocker.js ('K') | « lib/requestBlocker.js ('k') | lib/subscriptionInit.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld