| 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-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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 } | 168 } |
| 169 else | 169 else |
| 170 bidiDir = Utils.readingDirection; | 170 bidiDir = Utils.readingDirection; |
| 171 | 171 |
| 172 return {locale: Utils.appLocale, bidiDir}; | 172 return {locale: Utils.appLocale, bidiDir}; |
| 173 } | 173 } |
| 174 | 174 |
| 175 if (message.what == "features") | 175 if (message.what == "features") |
| 176 { | 176 { |
| 177 return { | 177 return { |
| 178 devToolsPanel: info.platform == "chromium" | 178 devToolsPanel: info.platform == "chromium" || |
| 179 info.application == "firefox" && |
| 180 parseInt(info.applicationVersion, 10) >= 54 |
| 179 }; | 181 }; |
| 180 } | 182 } |
| 181 | 183 |
| 182 return info[message.what]; | 184 return info[message.what]; |
| 183 }); | 185 }); |
| 184 | 186 |
| 185 port.on("app.listen", (message, sender) => | 187 port.on("app.listen", (message, sender) => |
| 186 { | 188 { |
| 187 getListenerFilters(sender.page).app = message.filter; | 189 getListenerFilters(sender.page).app = message.filter; |
| 188 }); | 190 }); |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 if (message.url) | 427 if (message.url) |
| 426 subscriptions = [Subscription.fromURL(message.url)]; | 428 subscriptions = [Subscription.fromURL(message.url)]; |
| 427 | 429 |
| 428 for (let subscription of subscriptions) | 430 for (let subscription of subscriptions) |
| 429 { | 431 { |
| 430 if (subscription instanceof DownloadableSubscription) | 432 if (subscription instanceof DownloadableSubscription) |
| 431 Synchronizer.execute(subscription, true); | 433 Synchronizer.execute(subscription, true); |
| 432 } | 434 } |
| 433 }); | 435 }); |
| 434 })(this); | 436 })(this); |
| OLD | NEW |