Index: lib/filterComposer.js |
=================================================================== |
--- a/lib/filterComposer.js |
+++ b/lib/filterComposer.js |
@@ -172,11 +172,7 @@ |
page.contextMenus.create(contextMenuItem); |
} |
-FilterNotifier.addListener((action, page, filter) => |
-{ |
- if (action == "page.WhitelistingStateRevalidate") |
- updateContextMenu(page, filter); |
-}); |
+FilterNotifier.on("page.WhitelistingStateRevalidate", updateContextMenu); |
Prefs.on("shouldShowBlockElementMenu", () => |
{ |