Bug 600569: show build ID in about dialog for non-release builds, r=dolske, ui-review=limi, a=dolske

--HG--
extra : rebase_source : 8ba3cafc36ca8a03f9fcea21b9cea8a4e82773da
This commit is contained in:
Gavin Sharp 2010-10-23 22:57:45 -04:00
Родитель 4ced50fc06
Коммит d00c5ca35e
1 изменённых файлов: 8 добавлений и 0 удалений

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

@ -65,6 +65,14 @@ function init(aEvent)
// Pref is unset
}
// Include the build ID if this is a "pre" (i.e. non-release) build
let version = Services.appinfo.version;
if (version.indexOf("pre") != -1) {
let buildID = Services.appinfo.appBuildID;
let buildDate = buildID.slice(0,4) + "-" + buildID.slice(4,6) + "-" + buildID.slice(6,8);
document.getElementById("version").value += " (" + buildDate + ")";
}
#ifdef MOZ_UPDATER
gAppUpdater = new appUpdater();
#endif