| Index: desktop-options.js |
| =================================================================== |
| --- a/desktop-options.js |
| +++ b/desktop-options.js |
| @@ -1101,6 +1101,12 @@ |
| return url == acceptableAdsUrl || url == acceptableAdsPrivacyUrl; |
| } |
| + function isConflictingSubscription(subscription) |
| + { |
| + return subscription.url == acceptableAdsUrl || |
|
Thomas Greiner
2017/11/23 14:46:12
Suggestion: If you want you can pass an optional `
saroyanm
2017/11/23 16:41:37
Not sure if it will help much and it might complic
|
| + subscription.recommended == "privacy" |
| + } |
| + |
| function hasPrivacyConflict() |
|
Thomas Greiner
2017/11/23 14:46:12
I wouldn't mind keeping the privacy conflict check
saroyanm
2017/11/23 16:41:37
Agree, done.
|
| { |
| let acceptableAdsList = subscriptionsMap[acceptableAdsUrl]; |
| @@ -1291,8 +1297,7 @@ |
| if (isAcceptableAds(url)) |
| setAcceptableAds(); |
| - if ((url == acceptableAdsUrl || recommended == "privacy") && |
| - hasPrivacyConflict()) |
| + if (isConflictingSubscription(subscription) && hasPrivacyConflict()) |
| { |
| getPref("ui_warn_tracking", (showTrackingWarning) => |
| { |
| @@ -1321,6 +1326,11 @@ |
| collections.more.removeItem(subscription); |
| } |
| } |
| + if (isConflictingSubscription(subscription)) |
| + { |
| + E("acceptable-ads").classList.remove("show-warning"); |
| + } |
|
Thomas Greiner
2017/11/23 12:53:39
Why not instead introduce a function similar to `s
saroyanm
2017/11/23 14:06:51
Good point, done.
|
| + |
| collections.filterLists.removeItem(subscription); |
| break; |
| } |