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

This commit is contained in:
Gavin Sharp
2010-10-23 22:57:45 -04:00
parent 6cf3696de4
commit eb7b23b1de

View File

@@ -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