| Index: lib/synchronizer.js |
| =================================================================== |
| --- a/lib/synchronizer.js |
| +++ b/lib/synchronizer.js |
| @@ -21,17 +21,17 @@ |
| * @fileOverview Manages synchronization of filter subscriptions. |
| */ |
| const {Downloader, Downloadable, |
| MILLIS_IN_SECOND, MILLIS_IN_MINUTE, |
| MILLIS_IN_HOUR, MILLIS_IN_DAY} = require("./downloader"); |
| const {Filter} = require("./filterClasses"); |
| const {FilterStorage} = require("./filterStorage"); |
| -const {FilterNotifier} = require("./filterNotifier"); |
| +const {filterNotifier} = require("./filterNotifier"); |
| const {Prefs} = require("prefs"); |
| const {Subscription, |
| DownloadableSubscription} = require("./subscriptionClasses"); |
| const INITIAL_DELAY = 1 * MILLIS_IN_MINUTE; |
| const CHECK_INTERVAL = 1 * MILLIS_IN_HOUR; |
| const DEFAULT_EXPIRATION_INTERVAL = 5 * MILLIS_IN_DAY; |
| @@ -136,17 +136,17 @@ |
| subscription.expires = Math.round( |
| downloadable.hardExpiration / MILLIS_IN_SECOND |
| ); |
| }, |
| _onDownloadStarted(downloadable) |
| { |
| let subscription = Subscription.fromURL(downloadable.url); |
| - FilterNotifier.emit("subscription.downloading", subscription); |
| + filterNotifier.emit("subscription.downloading", subscription); |
| }, |
| _onDownloadSuccess(downloadable, responseText, errorCallback, |
| redirectCallback) |
| { |
| let lines = responseText.split(/[\r\n]+/); |
| let headerMatch = /\[Adblock(?:\s*Plus\s*([\d.]+)?)?\]/i.exec(lines[0]); |
| if (!headerMatch) |