zotero-plugin 2.0.4 → 2.0.6
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.d.ts +1 -1
- package/debug-log.js +3 -1
- package/package.json +1 -1
package/debug-log.d.ts
CHANGED
package/debug-log.js
CHANGED
|
@@ -12,7 +12,7 @@ class DebugLogSender {
|
|
|
12
12
|
menupopup: 'debug-log-sender-menupopup',
|
|
13
13
|
menuitem: 'debug-log-sender',
|
|
14
14
|
};
|
|
15
|
-
this.
|
|
15
|
+
this.debugEnabledAtStart = (Zotero.Prefs.get('debug.store') || Zotero.Debug.enabled);
|
|
16
16
|
}
|
|
17
17
|
convertLegacy() {
|
|
18
18
|
var _a;
|
|
@@ -132,6 +132,8 @@ class DebugLogSender {
|
|
|
132
132
|
if (addons.length) {
|
|
133
133
|
info += 'Addons:\n' + addons.map((addon) => ` ${addon}\n`).join(''); // eslint-disable-line prefer-template
|
|
134
134
|
}
|
|
135
|
+
info += `Debug logging on at Zotero start: ${this.debugEnabledAtStart}\n`;
|
|
136
|
+
info += `Debug logging on at log submit: ${Zotero.Prefs.get('debug.store') || Zotero.Debug.enabled}\n`;
|
|
135
137
|
for (const [pref, value] of Object.entries(this.preferences(preferences))) {
|
|
136
138
|
info += `${pref} = ${JSON.stringify(value)}\n`;
|
|
137
139
|
}
|