summaryrefslogtreecommitdiffstats
path: root/browser/base
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2017-08-11 00:28:41 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-02-21 20:10:22 +0100
commit580ebc105678c6d01cf64e7d75116d77984024a0 (patch)
tree5f9c8d20f26be994c992fc430edc9d195fc279bd /browser/base
parentef9aeb6a08749ecc43242ba523d67632a6ddc0dc (diff)
downloadUXP-580ebc105678c6d01cf64e7d75116d77984024a0.tar
UXP-580ebc105678c6d01cf64e7d75116d77984024a0.tar.gz
UXP-580ebc105678c6d01cf64e7d75116d77984024a0.tar.lz
UXP-580ebc105678c6d01cf64e7d75116d77984024a0.tar.xz
UXP-580ebc105678c6d01cf64e7d75116d77984024a0.zip
Replace display version in about box with build ID.
Diffstat (limited to 'browser/base')
-rw-r--r--browser/base/content/aboutDialog.js15
-rw-r--r--browser/base/content/aboutDialog.xul2
2 files changed, 9 insertions, 8 deletions
diff --git a/browser/base/content/aboutDialog.js b/browser/base/content/aboutDialog.js
index b024d2d52..55d8ff262 100644
--- a/browser/base/content/aboutDialog.js
+++ b/browser/base/content/aboutDialog.js
@@ -40,16 +40,17 @@ function init(aEvent)
// Pref is unset
}
- // Include the build ID and display warning if this is an "a#" (nightly or aurora) build
+ // Include the build ID
let versionField = document.getElementById("version");
let version = Services.appinfo.version;
+ let buildID = Services.appinfo.appBuildID;
+ let year = buildID.slice(0, 4);
+ let month = buildID.slice(4, 6);
+ let day = buildID.slice(6, 8);
+ versionField.textContent = buildID + ` (${year}-${month}-${day})`;
+
+ // Display warning if this is an "a#" (nightly or aurora) build
if (/a\d+$/.test(version)) {
- let buildID = Services.appinfo.appBuildID;
- let year = buildID.slice(0, 4);
- let month = buildID.slice(4, 6);
- let day = buildID.slice(6, 8);
- versionField.textContent += ` (${year}-${month}-${day})`;
-
document.getElementById("experimental").hidden = false;
document.getElementById("communityDesc").hidden = true;
}
diff --git a/browser/base/content/aboutDialog.xul b/browser/base/content/aboutDialog.xul
index ef2804f31..7988c0e34 100644
--- a/browser/base/content/aboutDialog.xul
+++ b/browser/base/content/aboutDialog.xul
@@ -45,7 +45,7 @@
<vbox id="leftBox" flex="1"/>
<vbox id="rightBox" flex="1">
<hbox align="baseline">
-#expand <label id="version">__MOZ_APP_VERSION_DISPLAY__</label>
+#expand <label id="version"></label>
#ifndef NIGHTLY_BUILD
<label id="releasenotes" class="text-link">&releaseNotes.link;</label>
#endif