2013-12-20 20:37:48 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2019-01-17 21:18:31 +03:00
|
|
|
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
2017-11-09 19:36:57 +03:00
|
|
|
|
2013-12-20 20:37:48 +04:00
|
|
|
// get release notes and vendor URL from prefs
|
2017-11-09 19:36:57 +03:00
|
|
|
var releaseNotesURL = Services.urlFormatter.formatURLPref(
|
|
|
|
"app.releaseNotesURL"
|
|
|
|
);
|
2013-12-20 20:37:48 +04:00
|
|
|
if (releaseNotesURL != "about:blank") {
|
|
|
|
var relnotes = document.getElementById("releaseNotesURL");
|
|
|
|
relnotes.setAttribute("href", releaseNotesURL);
|
|
|
|
relnotes.parentNode.removeAttribute("hidden");
|
|
|
|
}
|
|
|
|
|
2017-11-09 19:36:57 +03:00
|
|
|
var vendorURL = Services.urlFormatter.formatURLPref("app.vendorURL");
|
2013-12-20 20:37:48 +04:00
|
|
|
if (vendorURL != "about:blank") {
|
|
|
|
var vendor = document.getElementById("vendorURL");
|
|
|
|
vendor.setAttribute("href", vendorURL);
|
|
|
|
}
|
|
|
|
|
|
|
|
// insert the version of the XUL application (!= XULRunner platform version)
|
2017-11-09 19:36:57 +03:00
|
|
|
var versionNum = Services.appinfo.version;
|
2013-12-20 20:37:48 +04:00
|
|
|
var version = document.getElementById("version");
|
|
|
|
version.textContent += " " + versionNum;
|
|
|
|
|
|
|
|
// append user agent
|
|
|
|
var ua = navigator.userAgent;
|
|
|
|
if (ua) {
|
|
|
|
document.getElementById("buildID").textContent += " " + ua;
|
|
|
|
}
|