bug 649678 - include the build date in About window for a# versions. r=dao

This commit is contained in:
Jonathan Kew 2011-04-13 21:25:58 +01:00
Родитель da55dc6c27
Коммит 64b169ed5f
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -65,9 +65,9 @@ function init(aEvent)
// Pref is unset
}
// Include the build ID if this is a "pre" (i.e. non-release) build
// Include the build ID if this is an "a#" (nightly or aurora) build
let version = Services.appinfo.version;
if (version.indexOf("pre") != -1) {
if (/a\d+$/.test(version)) {
let buildID = Services.appinfo.appBuildID;
let buildDate = buildID.slice(0,4) + "-" + buildID.slice(4,6) + "-" + buildID.slice(6,8);
document.getElementById("version").value += " (" + buildDate + ")";