 Issue 29555782:
  Issue 5701 - Inconsistent forum links and DNT link  (Closed)
    
  
    Issue 29555782:
  Issue 5701 - Inconsistent forum links and DNT link  (Closed) 
  | 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-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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 }; | 179 }; | 
| 180 } | 180 } | 
| 181 | 181 | 
| 182 if (message.what == "browserInfo") | |
| 
Sebastian Noack
2017/09/25 17:09:22
Just an idea; how about merging the logic into the
 
saroyanm
2017/09/25 18:07:53
Don't have strong opinion, on one hand it makes th
 
Sebastian Noack
2017/09/25 19:07:47
Also note that the reason you introduced "browserI
 
saroyanm
2017/09/25 20:50:12
I agree with you, looks much more better now.
Done
 | |
| 183 { | |
| 184 return { | |
| 185 platform: info.platform, | |
| 186 application: info.application | |
| 187 }; | |
| 188 } | |
| 189 | |
| 182 return info[message.what]; | 190 return info[message.what]; | 
| 183 }); | 191 }); | 
| 184 | 192 | 
| 185 port.on("app.listen", (message, sender) => | 193 port.on("app.listen", (message, sender) => | 
| 186 { | 194 { | 
| 187 getListenerFilters(sender.page).app = message.filter; | 195 getListenerFilters(sender.page).app = message.filter; | 
| 188 }); | 196 }); | 
| 189 | 197 | 
| 190 port.on("app.open", (message, sender) => | 198 port.on("app.open", (message, sender) => | 
| 191 { | 199 { | 
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 425 if (message.url) | 433 if (message.url) | 
| 426 subscriptions = [Subscription.fromURL(message.url)]; | 434 subscriptions = [Subscription.fromURL(message.url)]; | 
| 427 | 435 | 
| 428 for (let subscription of subscriptions) | 436 for (let subscription of subscriptions) | 
| 429 { | 437 { | 
| 430 if (subscription instanceof DownloadableSubscription) | 438 if (subscription instanceof DownloadableSubscription) | 
| 431 Synchronizer.execute(subscription, true); | 439 Synchronizer.execute(subscription, true); | 
| 432 } | 440 } | 
| 433 }); | 441 }); | 
| 434 })(this); | 442 })(this); | 
| OLD | NEW |