| Index: lib/subscriptionInit.js |
| =================================================================== |
| --- a/lib/subscriptionInit.js |
| +++ b/lib/subscriptionInit.js |
| @@ -44,17 +44,17 @@ |
| * first run, but something went wrong. |
| * |
| * This function detects the first run, and makes sure that the user |
| * gets notified (on the first run page) if the data appears incomplete |
| * and therefore will be reinitialized. |
| */ |
| function detectFirstRun() |
| { |
| - firstRun = FilterStorage.subscriptions.length == 0; |
| + firstRun = FilterStorage.subscriptionCount == 0; |
| if (firstRun && (!FilterStorage.firstRun || Prefs.currentVersion)) |
| reinitialized = true; |
| Prefs.currentVersion = info.addonVersion; |
| } |
| /** |
| @@ -66,17 +66,17 @@ |
| * is no data and therefore no subscriptions. But it also causes the |
| * default ad blocking subscriptions to be added again after some |
| * data corruption or misconfiguration. |
| * |
| * @return {boolean} |
| */ |
| function shouldAddDefaultSubscriptions() |
| { |
| - for (let subscription of FilterStorage.subscriptions) |
| + for (let subscription of FilterStorage.subscriptions()) |
| { |
| if (subscription instanceof DownloadableSubscription && |
| subscription.url != Prefs.subscriptions_exceptionsurl && |
| subscription.url != Prefs.subscriptions_antiadblockurl && |
| subscription.type != "circumvention") |
| return false; |
| if (subscription instanceof SpecialSubscription && |