| 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-2015 Eyeo GmbH | 3  * Copyright (C) 2006-2015 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 21 matching lines...) Expand all  Loading... | 
| 32   subscriptions_fallbackurl: "https://adblockplus.org/getSubscription?version=%V
     ERSION%&url=%SUBSCRIPTION%&downloadURL=%URL%&error=%ERROR%&channelStatus=%CHANNE
     LSTATUS%&responseStatus=%RESPONSESTATUS%", | 32   subscriptions_fallbackurl: "https://adblockplus.org/getSubscription?version=%V
     ERSION%&url=%SUBSCRIPTION%&downloadURL=%URL%&error=%ERROR%&channelStatus=%CHANNE
     LSTATUS%&responseStatus=%RESPONSESTATUS%", | 
| 33   subscriptions_autoupdate: true, | 33   subscriptions_autoupdate: true, | 
| 34   subscriptions_exceptionsurl: "https://easylist-downloads.adblockplus.org/excep
     tionrules.txt", | 34   subscriptions_exceptionsurl: "https://easylist-downloads.adblockplus.org/excep
     tionrules.txt", | 
| 35   documentation_link: "https://adblockplus.org/redirect?link=%LINK%&lang=%LANG%"
     , | 35   documentation_link: "https://adblockplus.org/redirect?link=%LINK%&lang=%LANG%"
     , | 
| 36   update_url_release: "https://update.adblockplus.org/%NAME%/update.json?type=%T
     YPE%", | 36   update_url_release: "https://update.adblockplus.org/%NAME%/update.json?type=%T
     YPE%", | 
| 37   update_url_devbuild: "https://adblockplus.org/devbuilds/%NAME%/update.json?typ
     e=%TYPE%", | 37   update_url_devbuild: "https://adblockplus.org/devbuilds/%NAME%/update.json?typ
     e=%TYPE%", | 
| 38   update_last_check: 0, | 38   update_last_check: 0, | 
| 39   update_last_error: 0, | 39   update_last_error: 0, | 
| 40   update_soft_expiration: 0, | 40   update_soft_expiration: 0, | 
| 41   update_hard_expiration: 0, | 41   update_hard_expiration: 0, | 
| 42   currentVersion: "0.0" | 42   currentVersion: "0.0", | 
|  | 43   notificationdata: {}, | 
|  | 44   notificationurl: "https://notification.adblockplus.org/notification.json" | 
| 43 }; | 45 }; | 
| 44 | 46 | 
| 45 let values = Object.create(defaults); | 47 let values = Object.create(defaults); | 
| 46 let path = _fileSystem.resolve("prefs.json"); | 48 let path = _fileSystem.resolve("prefs.json"); | 
| 47 let listeners = []; | 49 let listeners = []; | 
| 48 let isDirty = false; | 50 let isDirty = false; | 
| 49 let isSaving = false; | 51 let isSaving = false; | 
| 50 | 52 | 
| 51 function defineProperty(key) | 53 function defineProperty(key) | 
| 52 { | 54 { | 
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 122     let index = listeners.indexOf(listener); | 124     let index = listeners.indexOf(listener); | 
| 123     if (index >= 0) | 125     if (index >= 0) | 
| 124       listeners.splice(index, 1); | 126       listeners.splice(index, 1); | 
| 125   }, | 127   }, | 
| 126 }; | 128 }; | 
| 127 | 129 | 
| 128 for (let key in defaults) | 130 for (let key in defaults) | 
| 129   defineProperty(key); | 131   defineProperty(key); | 
| 130 | 132 | 
| 131 load(); | 133 load(); | 
| OLD | NEW | 
|---|