summaryrefslogtreecommitdiffstats
path: root/toolkit/content/about.js
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-06-13 17:31:46 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-06-13 17:31:46 +0200
commite08b25667f20c83cd66e7f55dd98f16ae982974b (patch)
tree7a8d031f121417cb735c5c6e7bb0cec647482d26 /toolkit/content/about.js
parent27a19a14646f23194ecfe87530dd8d1d5b25fa57 (diff)
downloadUXP-e08b25667f20c83cd66e7f55dd98f16ae982974b.tar
UXP-e08b25667f20c83cd66e7f55dd98f16ae982974b.tar.gz
UXP-e08b25667f20c83cd66e7f55dd98f16ae982974b.tar.lz
UXP-e08b25667f20c83cd66e7f55dd98f16ae982974b.tar.xz
UXP-e08b25667f20c83cd66e7f55dd98f16ae982974b.zip
Add architecture detection to "about:" and "about:support"
Issue #492
Diffstat (limited to 'toolkit/content/about.js')
-rw-r--r--toolkit/content/about.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/toolkit/content/about.js b/toolkit/content/about.js
index c27916c10..c402ea685 100644
--- a/toolkit/content/about.js
+++ b/toolkit/content/about.js
@@ -33,7 +33,12 @@ var versionNum = Components.classes["@mozilla.org/xre/app-info;1"]
.getService(Components.interfaces.nsIXULAppInfo)
.version;
var version = document.getElementById("version");
-version.textContent += " " + versionNum;
+#ifdef HAVE_64BIT_BUILD
+var versionStr = versionNum + " (64-bit)";
+#else
+var versionStr = versionNum + " (32-bit)";
+#endif
+version.textContent += " " + versionStr;
// insert the buildid of the XUL application
var BuildIDVal = Components.classes["@mozilla.org/xre/app-info;1"]