Index: lib/icon.js |
=================================================================== |
--- a/lib/icon.js |
+++ b/lib/icon.js |
@@ -72,14 +72,11 @@ |
} |
} |
-FilterNotifier.addListener((action, page, filter) => |
+FilterNotifier.on("page.WhitelistingStateRevalidate", (page, filter) => |
{ |
- if (action == "page.WhitelistingStateRevalidate") |
- { |
- whitelistedState.set(page, !!filter); |
- if (canUpdateIcon) |
- setIcon(page); |
- } |
+ whitelistedState.set(page, !!filter); |
+ if (canUpdateIcon) |
+ setIcon(page); |
}); |
function renderFrames(notificationType) |