| Index: lib/hitLogger.js |
| =================================================================== |
| --- a/lib/hitLogger.js |
| +++ b/lib/hitLogger.js |
| @@ -16,17 +16,17 @@ |
| */ |
| /** @module hitLogger */ |
| "use strict"; |
| const {extractHostFromFrame} = require("./url"); |
| const {EventEmitter} = require("../adblockpluscore/lib/events"); |
| -const {FilterStorage} = require("../adblockpluscore/lib/filterStorage"); |
| +const {filterStorage} = require("../adblockpluscore/lib/filterStorage"); |
| const {port} = require("./messaging"); |
| const {RegExpFilter, |
| ElemHideFilter} = require("../adblockpluscore/lib/filterClasses"); |
| const nonRequestTypes = exports.nonRequestTypes = [ |
| "DOCUMENT", "ELEMHIDE", "SNIPPET", "GENERICBLOCK", "GENERICHIDE", "CSP" |
| ]; |
| @@ -104,17 +104,17 @@ |
| * @param {string[]} selectors The selectors of applied ElemHideFilters |
| * @param {string[]} filters The text of applied ElemHideEmulationFilters |
| * @param {string} docDomain The hostname of the document |
| */ |
| function logHiddenElements(tabId, selectors, filters, docDomain) |
| { |
| if (HitLogger.hasListener(tabId)) |
| { |
| - for (let subscription of FilterStorage.subscriptions) |
| + for (let subscription of filterStorage.subscriptions()) |
| { |
| if (subscription.disabled) |
| continue; |
| for (let filter of subscription.filters) |
| { |
| // We only know the exact filter in case of element hiding emulation. |
| // For regular element hiding filters, the content script only knows |