Index: lib/ui.js |
=================================================================== |
--- a/lib/ui.js |
+++ b/lib/ui.js |
@@ -795,14 +795,17 @@ |
addAcceptable = false; |
} |
- // Add "anti-adblock messages" subscription |
- let subscription = Subscription.fromURL(Prefs.subscriptions_antiadblockurl); |
- if (subscription) |
+ // Add "anti-adblock messages" subscription on first run |
+ if (Services.vc.compare(prevVersion, "0.0") == 0) |
{ |
- subscription.disabled = true; |
- FilterStorage.addSubscription(subscription); |
- if (subscription instanceof DownloadableSubscription && !subscription.lastDownload) |
- Synchronizer.execute(subscription); |
+ let subscription = Subscription.fromURL(Prefs.subscriptions_antiadblockurl); |
+ if (subscription) |
+ { |
+ subscription.disabled = true; |
+ FilterStorage.addSubscription(subscription); |
+ if (subscription instanceof DownloadableSubscription && !subscription.lastDownload) |
+ Synchronizer.execute(subscription); |
+ } |
} |
if (!addSubscription && !addAcceptable) |