mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-21 22:57:31 +09:00
Link about dialog version to general.useragent.appVersionIsBuildID.
true: YYYY.MM.DD.HHMM
false: v{internal version number} (YYYY-MM-DD)
This commit is contained in:
parent
1c091fd6b3
commit
ebb98d070f
1 changed files with 7 additions and 1 deletions
|
|
@ -47,7 +47,13 @@ function init(aEvent)
|
||||||
let year = buildID.slice(0, 4);
|
let year = buildID.slice(0, 4);
|
||||||
let month = buildID.slice(4, 6);
|
let month = buildID.slice(4, 6);
|
||||||
let day = buildID.slice(6, 8);
|
let day = buildID.slice(6, 8);
|
||||||
versionField.textContent = buildID + ` (${year}-${month}-${day})`;
|
let hour = buildID.slice(8, 10);
|
||||||
|
let minute = buildID.slice(10, 12);
|
||||||
|
if (Services.prefs.getBoolPref("general.useragent.appVersionIsBuildID")) {
|
||||||
|
versionField.textContent = `${year}.${month}.${day}.${hour}${minute}`;
|
||||||
|
} else {
|
||||||
|
versionField.textContent = `v` + version + ` (${year}-${month}-${day})`;
|
||||||
|
}
|
||||||
|
|
||||||
// Display warning if this is an "a#" (nightly or aurora) build
|
// Display warning if this is an "a#" (nightly or aurora) build
|
||||||
if (/a\d+$/.test(version)) {
|
if (/a\d+$/.test(version)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue