Index: lib/filterComposer.js |
=================================================================== |
--- a/lib/filterComposer.js |
+++ b/lib/filterComposer.js |
@@ -16,17 +16,17 @@ |
*/ |
/** @module filterComposer */ |
"use strict"; |
const {defaultMatcher} = require("../adblockpluscore/lib/matcher"); |
const {RegExpFilter} = require("../adblockpluscore/lib/filterClasses"); |
-const {FilterNotifier} = require("../adblockpluscore/lib/filterNotifier"); |
+const {filterNotifier} = require("../adblockpluscore/lib/filterNotifier"); |
const {Prefs} = require("./prefs"); |
const {extractHostFromFrame, isThirdParty} = require("./url"); |
const {getKey, checkWhitelisted} = require("./whitelisting"); |
const {port} = require("./messaging"); |
const info = require("info"); |
let readyPages = new ext.PageMap(); |
@@ -184,17 +184,17 @@ |
// user experience on mobile is quite different. |
if (info.application != "fennec" && |
!filter && Prefs.shouldShowBlockElementMenu && readyPages.has(page)) |
{ |
page.contextMenus.create(contextMenuItem); |
} |
} |
-FilterNotifier.on("page.WhitelistingStateRevalidate", updateContextMenu); |
+filterNotifier.on("page.WhitelistingStateRevalidate", updateContextMenu); |
Prefs.on("shouldShowBlockElementMenu", () => |
{ |
browser.tabs.query({}, tabs => |
{ |
for (let tab of tabs) |
updateContextMenu(new ext.Page(tab)); |
}); |