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

Unified Diff: lib/subscriptionInit.js

Issue 29338315: Issue 3801 - Add pre-configurable preference for additional subscriptions (Closed)
Patch Set: Created March 15, 2016, 1:40 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 | « lib/prefs.js ('k') | options.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/subscriptionInit.js
===================================================================
--- a/lib/subscriptionInit.js
+++ b/lib/subscriptionInit.js
@@ -102,6 +102,10 @@
{
let subscriptions = [];
+ // Add pre-configured subscriptions
+ for (let url of Prefs.additional_subscriptions)
+ subscriptions.push(Subscription.fromURL(url));
+
// Add "acceptable ads" and "anti-adblock messages" subscriptions
if (firstRun)
{
« no previous file with comments | « lib/prefs.js ('k') | options.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld