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

Unified Diff: lib/antiadblockInit.js

Issue 29390575: Issue 5019 - Fixes anti adblock notification not being added on first run (Closed)
Patch Set: Created March 21, 2017, 9:59 a.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/antiadblockInit.js
===================================================================
--- a/lib/antiadblockInit.js
+++ b/lib/antiadblockInit.js
@@ -81,17 +81,17 @@
addAntiAdblockNotification(antiAdblockSubscription);
function onSubscriptionChange(subscription)
{
let url = Prefs.subscriptions_antiadblockurl;
if (url != subscription.url)
return;
- if (url in FilterStorage.knownSubscriptions && !subscription.disabled)
+ if (url in FilterStorage.knownSubscriptions && subscription.disabled)
addAntiAdblockNotification(subscription);
else
removeAntiAdblockNotification();
}
FilterNotifier.on("subscription.updated", onSubscriptionChange);
FilterNotifier.on("subscription.removed", onSubscriptionChange);
FilterNotifier.on("subscription.disabled", onSubscriptionChange);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld