Index: background.js |
=================================================================== |
--- a/background.js |
+++ b/background.js |
@@ -220,14 +220,17 @@ |
addAcceptable = false; |
} |
- // Add "anti-adblock messages" subscription |
- var subscription = Subscription.fromURL(Prefs.subscriptions_antiadblockurl); |
- if (subscription) |
+ // Add "anti-adblock messages" subscription on first run |
+ if (!prevVersion) |
{ |
- subscription.disabled = true; |
- FilterStorage.addSubscription(subscription); |
- if (subscription instanceof DownloadableSubscription && !subscription.lastDownload) |
- Synchronizer.execute(subscription); |
+ var 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) |