| LEFT | RIGHT |
| 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 12 matching lines...) Expand all Loading... |
| 23 DownloadableSubscription, | 23 DownloadableSubscription, |
| 24 SpecialSubscription} = | 24 SpecialSubscription} = |
| 25 require("../adblockpluscore/lib/subscriptionClasses"); | 25 require("../adblockpluscore/lib/subscriptionClasses"); |
| 26 const {FilterStorage} = require("../adblockpluscore/lib/filterStorage"); | 26 const {FilterStorage} = require("../adblockpluscore/lib/filterStorage"); |
| 27 const {FilterNotifier} = require("../adblockpluscore/lib/filterNotifier"); | 27 const {FilterNotifier} = require("../adblockpluscore/lib/filterNotifier"); |
| 28 const info = require("../buildtools/info"); | 28 const info = require("../buildtools/info"); |
| 29 const {Prefs} = require("./prefs"); | 29 const {Prefs} = require("./prefs"); |
| 30 const {Synchronizer} = require("../adblockpluscore/lib/synchronizer"); | 30 const {Synchronizer} = require("../adblockpluscore/lib/synchronizer"); |
| 31 const {Utils} = require("./utils"); | 31 const {Utils} = require("./utils"); |
| 32 const {initNotifications} = require("./notificationHelper"); | 32 const {initNotifications} = require("./notificationHelper"); |
| 33 const {updatesVersion} = require("../adblockplusui/lib/prefs"); | |
| 34 | 33 |
| 35 let firstRun; | 34 let firstRun; |
| 36 let subscriptionsCallback = null; | 35 let subscriptionsCallback = null; |
| 37 | 36 |
| 38 /** | 37 /** |
| 39 * If there aren't any filters, the default subscriptions are added. | 38 * If there aren't any filters, the default subscriptions are added. |
| 40 * However, if patterns.ini already did exist and/or any preference | 39 * However, if patterns.ini already did exist and/or any preference |
| 41 * is set to a non-default value, this indicates that this isn't the | 40 * is set to a non-default value, this indicates that this isn't the |
| 42 * first run, but something went wrong. | 41 * first run, but something went wrong. |
| 43 * | 42 * |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 * Sets a callback that is called with an array of subscriptions to be added | 263 * Sets a callback that is called with an array of subscriptions to be added |
| 265 * during initialization. The callback must return an array of subscriptions | 264 * during initialization. The callback must return an array of subscriptions |
| 266 * that will effectively be added. | 265 * that will effectively be added. |
| 267 * | 266 * |
| 268 * @param {function} callback | 267 * @param {function} callback |
| 269 */ | 268 */ |
| 270 exports.setSubscriptionsCallback = callback => | 269 exports.setSubscriptionsCallback = callback => |
| 271 { | 270 { |
| 272 subscriptionsCallback = callback; | 271 subscriptionsCallback = callback; |
| 273 }; | 272 }; |
| LEFT | RIGHT |