| Index: lib/indexedDBBackup.js |
| =================================================================== |
| --- a/lib/indexedDBBackup.js |
| +++ b/lib/indexedDBBackup.js |
| @@ -12,17 +12,17 @@ |
| * GNU General Public License for more details. |
| * |
| * You should have received a copy of the GNU General Public License |
| * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| */ |
| "use strict"; |
| -const {FilterNotifier} = require("../adblockpluscore/lib/filterNotifier"); |
| +const {filterNotifier} = require("../adblockpluscore/lib/filterNotifier"); |
| const {FilterStorage} = require("../adblockpluscore/lib/filterStorage"); |
| const {DownloadableSubscription, SpecialSubscription} = |
| require("../adblockpluscore/lib/subscriptionClasses"); |
| const BACKUP_NAME = "file:indexedDB-backup"; |
| let backupDelay; |
| let pendingBackup = false; |
| @@ -96,24 +96,24 @@ |
| let entry = items[BACKUP_NAME]; |
| if (entry) |
| return entry; |
| throw {type: "NoSuchFile"}; |
| }); |
| } |
| -FilterNotifier.on("load", scheduleBackup); |
| -FilterNotifier.on("subscription.updated", scheduleBackup); |
| -FilterNotifier.on("subscription.added", scheduleBackup); |
| -FilterNotifier.on("subscription.removed", scheduleBackup); |
| -FilterNotifier.on("subscription.disabled", scheduleBackup); |
| -FilterNotifier.on("filter.added", scheduleBackup); |
| -FilterNotifier.on("filter.removed", scheduleBackup); |
| -FilterNotifier.on("filter.moved", scheduleBackup); |
| -FilterNotifier.on("filter.disabled", scheduleBackup); |
| +filterNotifier.on("load", scheduleBackup); |
| +filterNotifier.on("subscription.updated", scheduleBackup); |
| +filterNotifier.on("subscription.added", scheduleBackup); |
| +filterNotifier.on("subscription.removed", scheduleBackup); |
| +filterNotifier.on("subscription.disabled", scheduleBackup); |
| +filterNotifier.on("filter.added", scheduleBackup); |
| +filterNotifier.on("filter.removed", scheduleBackup); |
| +filterNotifier.on("filter.moved", scheduleBackup); |
| +filterNotifier.on("filter.disabled", scheduleBackup); |
| exports.IndexedDBBackup = |
| { |
| getBackupData, |
| // Non-public API, just for tests. |
| setBackupInterval |
| }; |