From 49e8a36e170da3066d7c0216fca272ecac988102 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Fri, 11 Aug 2017 20:02:04 +0200 Subject: Link about dialog version to general.useragent.appVersionIsBuildID. true: YYYY.MM.DD.HHMM false: v{internal version number} (YYYY-MM-DD) --- browser/base/content/aboutDialog.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'browser/base/content') 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)) { -- cgit v1.2.3