From c220c30bbb25015d85bd243a6445ca84401297a9 Mon Sep 17 00:00:00 2001 From: JustOff Date: Wed, 19 Feb 2020 19:30:21 +0200 Subject: Issue #1445 - Add a link to details on using Firefox extensions in Pale Moon --- toolkit/mozapps/extensions/content/extensions.js | 4 ++++ toolkit/mozapps/extensions/content/extensions.xml | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'toolkit/mozapps/extensions') diff --git a/toolkit/mozapps/extensions/content/extensions.js b/toolkit/mozapps/extensions/content/extensions.js index 782fca303..3c3b5894b 100644 --- a/toolkit/mozapps/extensions/content/extensions.js +++ b/toolkit/mozapps/extensions/content/extensions.js @@ -3067,6 +3067,10 @@ var gDetailView = { "details.notification.compatibility", [this._addon.name, gStrings.brandShortName], 2 ); + var warningLink = document.getElementById("detail-warning-link"); + warningLink.value = gStrings.ext.GetStringFromName("details.notification.compatibility.link"); + warningLink.href = Services.urlFormatter.formatURLPref("extensions.compatibility.url"); + warningLink.hidden = false; #endif } else { this.node.removeAttribute("notification"); diff --git a/toolkit/mozapps/extensions/content/extensions.xml b/toolkit/mozapps/extensions/content/extensions.xml index 097410fd2..e2eef852a 100644 --- a/toolkit/mozapps/extensions/content/extensions.xml +++ b/toolkit/mozapps/extensions/content/extensions.xml @@ -1363,6 +1363,10 @@ "notification.compatibility", [this.mAddon.name, gStrings.brandShortName], 2 ); + this._warningLink.value = gStrings.ext.GetStringFromName("notification.compatibility.link"); + this._warningLink.href = Services.urlFormatter.formatURLPref("extensions.compatibility.url"); + this._warningLink.hidden = false; + this._warningBtn.hidden = true; } } #endif -- cgit v1.2.3