summaryrefslogtreecommitdiffstats
path: root/browser/base/content/aboutDialog.js
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2017-08-11 20:02:04 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-02-21 23:15:23 +0100
commit49e8a36e170da3066d7c0216fca272ecac988102 (patch)
treefb03cbafe0520c9a381e755947c45cf4a8c306b8 /browser/base/content/aboutDialog.js
parent5f813f143bad0919f4c228f5045c3b090eeb25fd (diff)
downloadUXP-49e8a36e170da3066d7c0216fca272ecac988102.tar
UXP-49e8a36e170da3066d7c0216fca272ecac988102.tar.gz
UXP-49e8a36e170da3066d7c0216fca272ecac988102.tar.lz
UXP-49e8a36e170da3066d7c0216fca272ecac988102.tar.xz
UXP-49e8a36e170da3066d7c0216fca272ecac988102.zip
Link about dialog version to general.useragent.appVersionIsBuildID.
true: YYYY.MM.DD.HHMM false: v{internal version number} (YYYY-MM-DD)
Diffstat (limited to 'browser/base/content/aboutDialog.js')
-rw-r--r--browser/base/content/aboutDialog.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/browser/base/content/aboutDialog.js b/browser/base/content/aboutDialog.js
index 55d8ff262..04384d584 100644
--- a/browser/base/content/aboutDialog.js
+++ b/browser/base/content/aboutDialog.js
@@ -47,7 +47,13 @@ function init(aEvent)
let year = buildID.slice(0, 4);
let month = buildID.slice(4, 6);
let day = buildID.slice(6, 8);
- versionField.textContent = buildID + ` (${year}-${month}-${day})`;
+ let hour = buildID.slice(8, 10);
+ let minute = buildID.slice(10, 12);
+ if (Services.prefs.getBoolPref("general.useragent.appVersionIsBuildID")) {
+ versionField.textContent = `${year}.${month}.${day}.${hour}${minute}`;
+ } else {
+ versionField.textContent = `v` + version + ` (${year}-${month}-${day})`;
+ }
// Display warning if this is an "a#" (nightly or aurora) build
if (/a\d+$/.test(version)) {