mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
Replace display version in about box with build ID.
This commit is contained in:
parent
b3ce96c6d7
commit
4eca2a10d6
2 changed files with 9 additions and 8 deletions
|
|
@ -40,16 +40,17 @@ function init(aEvent)
|
|||
// Pref is unset
|
||||
}
|
||||
|
||||
// Include the build ID and display warning if this is an "a#" (nightly or aurora) build
|
||||
// Include the build ID
|
||||
let versionField = document.getElementById("version");
|
||||
let version = Services.appinfo.version;
|
||||
let buildID = Services.appinfo.appBuildID;
|
||||
let year = buildID.slice(0, 4);
|
||||
let month = buildID.slice(4, 6);
|
||||
let day = buildID.slice(6, 8);
|
||||
versionField.textContent = buildID + ` (${year}-${month}-${day})`;
|
||||
|
||||
// Display warning if this is an "a#" (nightly or aurora) build
|
||||
if (/a\d+$/.test(version)) {
|
||||
let buildID = Services.appinfo.appBuildID;
|
||||
let year = buildID.slice(0, 4);
|
||||
let month = buildID.slice(4, 6);
|
||||
let day = buildID.slice(6, 8);
|
||||
versionField.textContent += ` (${year}-${month}-${day})`;
|
||||
|
||||
document.getElementById("experimental").hidden = false;
|
||||
document.getElementById("communityDesc").hidden = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@
|
|||
<vbox id="leftBox" flex="1"/>
|
||||
<vbox id="rightBox" flex="1">
|
||||
<hbox align="baseline">
|
||||
#expand <label id="version">__MOZ_APP_VERSION_DISPLAY__</label>
|
||||
#expand <label id="version"></label>
|
||||
#ifndef NIGHTLY_BUILD
|
||||
<label id="releasenotes" class="text-link">&releaseNotes.link;</label>
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue