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

Unified Diff: lib/subscriptionInit.js

Issue 29845576: Issue 6832 - Easylist was not re-added if the anti-circumvention list existed (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Created Aug. 2, 2018, 10:33 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: lib/subscriptionInit.js
===================================================================
--- a/lib/subscriptionInit.js
+++ b/lib/subscriptionInit.js
@@ -70,24 +70,24 @@
* @return {boolean}
*/
function shouldAddDefaultSubscriptions()
{
for (let subscription of FilterStorage.subscriptions)
{
if (subscription instanceof DownloadableSubscription &&
subscription.url != Prefs.subscriptions_exceptionsurl &&
- subscription.url != Prefs.subscriptions_antiadblockurl)
+ subscription.url != Prefs.subscriptions_antiadblockurl &&
+ subscription.type != "circumvention")
return false;
if (subscription instanceof SpecialSubscription &&
subscription.filters.length > 0)
return false;
}
-
Sebastian Noack 2018/08/02 22:47:41 Nit: Unrelated change.
hub 2018/08/02 22:59:24 Done.
return true;
}
/**
* @typedef {object} DefaultSubscriptions
* @property {?Element} ads
* @property {?Element} circumvention
*/
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld