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