| Left: | ||
| Right: |
| 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-2016 Eyeo GmbH | 3 * Copyright (C) 2006-2016 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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 317 if (allow) | 317 if (allow) |
| 318 { | 318 { |
| 319 FilterStorage.addSubscription(subscription); | 319 FilterStorage.addSubscription(subscription); |
| 320 if (subscription instanceof DownloadableSubscription && !subscription.lastDo wnload) | 320 if (subscription instanceof DownloadableSubscription && !subscription.lastDo wnload) |
| 321 Synchronizer.execute(subscription); | 321 Synchronizer.execute(subscription); |
| 322 } | 322 } |
| 323 else | 323 else |
| 324 FilterStorage.removeSubscription(subscription); | 324 FilterStorage.removeSubscription(subscription); |
| 325 }; | 325 }; |
| 326 | 326 |
| 327 /** | |
| 328 * Checks whether Adblock Plus needs to be upgraded in order to support filters | |
| 329 * in a particular subscription. | |
| 330 */ | |
| 331 ListManager.isUpgradeRequired = function(/**Subscription*/ subscription) | |
|
Thomas Greiner
2016/03/18 16:43:22
Where is this being used? In filters.xul (line 249
Wladimir Palant
2016/03/19 18:59:13
Ouch, not sure what happened here - part of the pa
| |
| 332 { | |
| 333 if (subscription instanceof DownloadableSubscription && subscription.requiredV ersion) | |
| 334 { | |
| 335 let {addonVersion} = require("info"); | |
| 336 if (Services.vc.compare(subscription.requiredVersion, addonVersion) > 0) | |
| 337 return true; | |
| 338 } | |
| 339 return false; | |
| 340 }; | |
| 341 | |
| 327 window.addEventListener("load", ListManager.init, false); | 342 window.addEventListener("load", ListManager.init, false); |
| OLD | NEW |