Use app.releaseNotesURL preference instead of a hardcoded URL in the Basilisk about box

This commit is contained in:
NTD 2018-02-05 02:13:44 -05:00 committed by Roy Tam
commit 2e1a61cb76
2 changed files with 5 additions and 1 deletions

View file

@ -62,6 +62,10 @@ function init(aEvent)
let arch = bundle.GetStringFromName(archResource);
versionField.textContent += ` (${arch})`;
// Get Release Notes URL from Preferences
let releaseNotesURL = Services.prefs.getCharPref("app.releaseNotesURL");
document.getElementById("releasenotes").setAttribute("href", releaseNotesURL);
if (AppConstants.MOZ_UPDATER) {
gAppUpdater = new appUpdater();

View file

@ -47,7 +47,7 @@
<hbox align="baseline">
#expand <label id="version">__MOZ_APP_VERSION_DISPLAY__</label>
#ifndef NIGHTLY_BUILD
#expand <label id="releasenotes" class="text-link" href="https://www.mozilla.org/firefox/__MOZ_APP_VERSION__/releasenotes/">&releaseNotes.link;</label>
<label id="releasenotes" class="text-link">&releaseNotes.link;</label>
#endif
</hbox>