OLD | NEW |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-present eyeo GmbH | 3 * Copyright (C) 2006-present eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 /** | 88 /** |
89 * Yields {@link Downloadable} instances for all subscriptions that can be | 89 * Yields {@link Downloadable} instances for all subscriptions that can be |
90 * downloaded. | 90 * downloaded. |
91 * @yields {Downloadable} | 91 * @yields {Downloadable} |
92 */ | 92 */ |
93 *_getDownloadables() | 93 *_getDownloadables() |
94 { | 94 { |
95 if (!Prefs.subscriptions_autoupdate) | 95 if (!Prefs.subscriptions_autoupdate) |
96 return; | 96 return; |
97 | 97 |
98 for (let subscription of FilterStorage.subscriptions) | 98 for (let subscription of FilterStorage.subscriptions()) |
99 { | 99 { |
100 if (subscription instanceof DownloadableSubscription) | 100 if (subscription instanceof DownloadableSubscription) |
101 yield this._getDownloadable(subscription, false); | 101 yield this._getDownloadable(subscription, false); |
102 } | 102 } |
103 } | 103 } |
104 | 104 |
105 /** | 105 /** |
106 * Creates a {@link Downloadable} instance for a subscription. | 106 * Creates a {@link Downloadable} instance for a subscription. |
107 * @param {Subscription} subscription | 107 * @param {Subscription} subscription |
108 * @param {boolean} manual | 108 * @param {boolean} manual |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 } | 338 } |
339 | 339 |
340 /** | 340 /** |
341 * This object is responsible for downloading filter subscriptions whenever | 341 * This object is responsible for downloading filter subscriptions whenever |
342 * necessary. | 342 * necessary. |
343 * @type {Synchronizer} | 343 * @type {Synchronizer} |
344 */ | 344 */ |
345 let synchronizer = new Synchronizer(); | 345 let synchronizer = new Synchronizer(); |
346 | 346 |
347 exports.Synchronizer = synchronizer; | 347 exports.Synchronizer = synchronizer; |
OLD | NEW |