zotero-plugin 2.0.29 → 2.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/debug-log.js +3 -1
- package/package.json +1 -1
package/debug-log.js
CHANGED
|
@@ -140,7 +140,9 @@ class DebugLogSender {
|
|
|
140
140
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment
|
|
141
141
|
const appInfo = Components.classes['@mozilla.org/xre/app-info;1'].getService(Components.interfaces.nsIXULAppInfo);
|
|
142
142
|
info += `Application: ${appInfo.name} ${appInfo.version} ${Zotero.locale}\n`;
|
|
143
|
-
|
|
143
|
+
const platform = ['Win', 'Mac', 'Linux'].find(p => Zotero[`is${p}`]) || 'Unknown';
|
|
144
|
+
const arch = Zotero.oscpu || Zotero.arch;
|
|
145
|
+
info += `Platform: ${platform} ${arch}\n`;
|
|
144
146
|
const addons = await Zotero.getInstalledExtensions();
|
|
145
147
|
if (addons.length) {
|
|
146
148
|
info += 'Addons:\n' + addons.map((addon) => ` ${addon}\n`).join(''); // eslint-disable-line prefer-template
|