Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: messageResponder.js

Issue 29373674: Issue 3487 - Add links to the help tab (Closed)
Patch Set: Created Jan. 27, 2017, 5:20 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | new-options.html » ('j') | new-options.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | new-options.html » ('j') | new-options.js » ('J')

Powered by Google App Engine
This is Rietveld