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

Unified Diff: lib/filterComposer.js

Issue 29532767: Issue 5593 - Use messaging in popup for prefs, whitelisting, and stats (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Fix lint error and simplify code Created Sept. 24, 2017, 10:34 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
« no previous file with comments | « dependencies ('k') | lib/stats.js » ('j') | popup.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/filterComposer.js
===================================================================
--- a/lib/filterComposer.js
+++ b/lib/filterComposer.js
@@ -197,16 +197,21 @@
{
ext.pages.query({}, pages =>
{
for (let page of pages)
updateContextMenu(page);
});
});
+port.on("composer.isPageReady", (message, sender) =>
+{
+ return readyPages.has(new ext.Page({id: message.pageId}));
+});
+
port.on("composer.ready", (message, sender) =>
{
readyPages.set(sender.page, null);
updateContextMenu(sender.page);
});
port.on("composer.openDialog", (message, sender) =>
{
« no previous file with comments | « dependencies ('k') | lib/stats.js » ('j') | popup.js » ('J')

Powered by Google App Engine
This is Rietveld