diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2017-08-11 20:02:04 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-02-21 23:15:23 +0100 |
commit | 49e8a36e170da3066d7c0216fca272ecac988102 (patch) | |
tree | fb03cbafe0520c9a381e755947c45cf4a8c306b8 /browser/base | |
parent | 5f813f143bad0919f4c228f5045c3b090eeb25fd (diff) | |
download | uxp-49e8a36e170da3066d7c0216fca272ecac988102.tar.gz |
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')
-rw-r--r-- | browser/base/content/aboutDialog.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/browser/base/content/aboutDialog.js b/browser/base/content/aboutDialog.js index 55d8ff2627..04384d5848 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)) { |