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

Unified Diff: messageResponder.js

Issue 29479612: Issue 4978 - Include filters with special subscription (Closed) Base URL: https://hg.adblockplus.org/adblockplusui/
Patch Set: Created July 4, 2017, 2:24 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: messageResponder.js
===================================================================
--- a/messageResponder.js
+++ b/messageResponder.js
@@ -66,16 +66,18 @@
}
return result;
}
function convertSubscription(subscription)
{
let obj = convertObject(["disabled", "downloadStatus", "homepage",
"lastDownload", "title", "url"], subscription);
+ if (subscription instanceof SpecialSubscription)
+ obj.filters = subscription.filters.map(convertFilter);
obj.isDownloading = Synchronizer.isExecuting(subscription.url);
return obj;
}
let convertFilter = convertObject.bind(null, ["text"]);
let changeListeners = new ext.PageMap();
let listenedPreferences = Object.create(null);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld