Commit 0a55af0e authored by Manvel Saroyan's avatar Manvel Saroyan

Issue 5701 - fixed inconsistent forum links and missing DNT link

parent 633afe3b
...@@ -154,7 +154,15 @@ ...@@ -154,7 +154,15 @@
} }
if (message.what == "doclink") 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") if (message.what == "localeInfo")
{ {
......
...@@ -299,7 +299,7 @@ ...@@ -299,7 +299,7 @@
<li id="report-issue" class="i18n_options_report_issue"></li> <li id="report-issue" class="i18n_options_report_issue"></li>
<li id="report-ad" class="i18n_options_report_ad"></li> <li id="report-ad" class="i18n_options_report_ad"></li>
<li id="report-bug" class="i18n_options_report_bug"></li> <li id="report-bug" class="i18n_options_report_bug"></li>
<li id="report-forum" class="i18n_options_report_forum"></li> <li id="visit-forum" class="i18n_options_report_forum"></li>
</ul> </ul>
</section> </section>
<section class="cols"> <section class="cols">
......
...@@ -865,6 +865,10 @@ ...@@ -865,6 +865,10 @@
{ {
setLinks("enable-aa-description", link); setLinks("enable-aa-description", link);
}); });
getDocLink("adblock_plus_{browser}_dnt", url =>
{
setLinks("dnt", url);
});
// Advanced tab // Advanced tab
let customize = document.querySelectorAll("#customize li[data-pref]"); let customize = document.querySelectorAll("#customize li[data-pref]");
...@@ -914,9 +918,9 @@ ...@@ -914,9 +918,9 @@
{ {
setLinks("report-bug", link); setLinks("report-bug", link);
}); });
getDocLink("reporter_other_link", (link) => getDocLink("{browser}_support", url =>
{ {
setLinks("report-forum", link); setLinks("visit-forum", url);
}); });
getDocLink("social_twitter", (link) => getDocLink("social_twitter", (link) =>
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment