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: Refactor whenPageReady Created Sept. 19, 2017, 6:01 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
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) =>
{

Powered by Google App Engine
This is Rietveld