| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 176 return {locale: Utils.appLocale, bidiDir: bidiDir}; | 176 return {locale: Utils.appLocale, bidiDir: bidiDir}; |
| 177 } | 177 } |
| 178 | 178 |
| 179 if (message.what == "features") | 179 if (message.what == "features") |
| 180 { | 180 { |
| 181 return { | 181 return { |
| 182 devToolsPanel: info.platform == "chromium" | 182 devToolsPanel: info.platform == "chromium" |
| 183 }; | 183 }; |
| 184 } | 184 } |
| 185 | 185 |
| 186 if (message.what == "application") | |
| 187 return info.application; | |
| 188 | |
| 189 if (message.what == "platform") | |
| 190 return info.platform; | |
|
Thomas Greiner
2017/01/31 14:29:22
See line 192.
saroyanm
2017/02/01 13:22:18
Crap, how I could have missed that, thanks.
| |
| 191 | |
| 186 return info[message.what]; | 192 return info[message.what]; |
| 187 }); | 193 }); |
| 188 | 194 |
| 189 port.on("app.listen", (message, sender) => | 195 port.on("app.listen", (message, sender) => |
| 190 { | 196 { |
| 191 getListenerFilters(sender.page).app = message.filter; | 197 getListenerFilters(sender.page).app = message.filter; |
| 192 }); | 198 }); |
| 193 | 199 |
| 194 port.on("app.open", (message, sender) => | 200 port.on("app.open", (message, sender) => |
| 195 { | 201 { |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 418 { | 424 { |
| 419 let subscriptions = message.url ? [Subscription.fromURL(message.url)] : | 425 let subscriptions = message.url ? [Subscription.fromURL(message.url)] : |
| 420 FilterStorage.subscriptions; | 426 FilterStorage.subscriptions; |
| 421 for (let subscription of subscriptions) | 427 for (let subscription of subscriptions) |
| 422 { | 428 { |
| 423 if (subscription instanceof DownloadableSubscription) | 429 if (subscription instanceof DownloadableSubscription) |
| 424 Synchronizer.execute(subscription, true); | 430 Synchronizer.execute(subscription, true); |
| 425 } | 431 } |
| 426 }); | 432 }); |
| 427 } | 433 } |
| OLD | NEW |