| Index: lib/synchronizer.js |
| =================================================================== |
| --- a/lib/synchronizer.js |
| +++ b/lib/synchronizer.js |
| @@ -137,17 +137,17 @@ |
| subscription.expires = Math.round( |
| downloadable.hardExpiration / MILLIS_IN_SECOND |
| ); |
| }, |
| _onDownloadStarted(downloadable) |
| { |
| let subscription = Subscription.fromURL(downloadable.url); |
| - FilterNotifier.triggerListeners("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) |