mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 728737 - Include the build date on the XUL Fennec about: page for nightlies [r=mbrubeck]
This commit is contained in:
parent
da07715475
commit
bbc6d4db7b
@ -90,6 +90,19 @@
|
||||
|
||||
<script type="application/javascript;version=1.8"><![CDATA[
|
||||
let Ci = Components.interfaces, Cc = Components.classes, Cu = Components.utils, Cr = Components.results;
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
// Include the build date if this is an "a#" (nightly or aurora) build
|
||||
#expand const version = "__MOZ_APP_VERSION__";
|
||||
if (/a\d+$/.test(version)) {
|
||||
let buildID = Services.appinfo.appBuildID;
|
||||
let buildDate = buildID.slice(0,4) + "-" + buildID.slice(4,6) + "-" + buildID.slice(6,8);
|
||||
let br = document.createElement("br");
|
||||
let versionPara = document.getElementById("version");
|
||||
versionPara.appendChild(br);
|
||||
let date = document.createTextNode("(" + buildDate + ")");
|
||||
versionPara.appendChild(date);
|
||||
}
|
||||
|
||||
// get URLs from prefs
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user