Add 32/64-bit info after version number in about dialog on Windows/Linux

This commit is contained in:
Dan Stillman 2023-05-22 23:58:00 -04:00
parent de154ab407
commit 522de4ad92

View file

@ -26,7 +26,12 @@
<label id="changelog" class="zotero-text-link" value="&zotero.whatsNew;"/>
</hbox>
<script>
document.getElementById('version').textContent = Zotero.version;
var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
var version = Zotero.version;
if (!Zotero.isMac) {
version += ` (${Services.appinfo.is64Bit ? '64' : '32'}-bit)`;
}
document.getElementById('version').textContent = version
</script>
<vbox>
<div id="about-text" xmlns="http://www.w3.org/1999/xhtml">