Bug 600569: show build ID in about dialog for non-release builds, r=dolske, ui-review=limi, a=dolske
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user