зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
4ced50fc06
Коммит
d00c5ca35e
|
@ -65,6 +65,14 @@ function init(aEvent)
|
||||||
// Pref is unset
|
// 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
|
#ifdef MOZ_UPDATER
|
||||||
gAppUpdater = new appUpdater();
|
gAppUpdater = new appUpdater();
|
||||||
#endif
|
#endif
|
||||||
|
|
Загрузка…
Ссылка в новой задаче