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

Unified Diff: messageResponder.js

Issue 29555782: Issue 5701 - Inconsistent forum links and DNT link (Closed)
Patch Set: Created Sept. 25, 2017, 9:26 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | new-options.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: messageResponder.js
===================================================================
--- a/messageResponder.js
+++ b/messageResponder.js
@@ -156,7 +156,15 @@
}
if (message.what == "doclink")
- return Utils.getDocLink(message.link);
+ {
+ let {application} = info;
+ if (info.platform == "chromium" && application != "opera")
+ application = "chrome";
+ else if (info.platform == "gecko")
+ application = "firefox";
+
+ return Utils.getDocLink(message.link.replace("{browser}", application));
+ }
if (message.what == "localeInfo")
{
« no previous file with comments | « no previous file | new-options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld