| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 else if (message.what == "localeInfo") | 158 else if (message.what == "localeInfo") |
| 159 { | 159 { |
| 160 var bidiDir; | 160 var bidiDir; |
| 161 if ("chromeRegistry" in Utils) | 161 if ("chromeRegistry" in Utils) |
| 162 bidiDir = Utils.chromeRegistry.isLocaleRTL("adblockplus") ? "rtl" :
"ltr"; | 162 bidiDir = Utils.chromeRegistry.isLocaleRTL("adblockplus") ? "rtl" :
"ltr"; |
| 163 else | 163 else |
| 164 bidiDir = ext.i18n.getMessage("@@bidi_dir"); | 164 bidiDir = ext.i18n.getMessage("@@bidi_dir"); |
| 165 | 165 |
| 166 callback({locale: Utils.appLocale, bidiDir: bidiDir}); | 166 callback({locale: Utils.appLocale, bidiDir: bidiDir}); |
| 167 } | 167 } |
| 168 else if (message.what == "addonVersion") | 168 else if (message.what == "info") |
| 169 { | 169 { |
| 170 callback(require("info").addonVersion); | 170 var info = require("info"); |
| 171 callback({ |
| 172 application: info.application, |
| 173 addonVersion: info.addonVersion |
| 174 }); |
| 171 } | 175 } |
| 172 else | 176 else |
| 173 callback(null); | 177 callback(null); |
| 174 break; | 178 break; |
| 175 case "app.listen": | 179 case "app.listen": |
| 176 if (message.filter) | 180 if (message.filter) |
| 177 listenerFilters.app = message.filter; | 181 listenerFilters.app = message.filter; |
| 178 else | 182 else |
| 179 delete listenerFilters.app; | 183 delete listenerFilters.app; |
| 180 break; | 184 break; |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 if (subscription instanceof DownloadableSubscription) | 367 if (subscription instanceof DownloadableSubscription) |
| 364 Synchronizer.execute(subscription, true); | 368 Synchronizer.execute(subscription, true); |
| 365 } | 369 } |
| 366 break; | 370 break; |
| 367 case "subscriptions.isDownloading": | 371 case "subscriptions.isDownloading": |
| 368 callback(Synchronizer.isExecuting(message.url)); | 372 callback(Synchronizer.isExecuting(message.url)); |
| 369 break; | 373 break; |
| 370 } | 374 } |
| 371 }); | 375 }); |
| 372 })(this); | 376 })(this); |
| OLD | NEW |