zotero-plugin 6.1.2 → 6.2.0
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/bin/fetch-log.mjs +1 -1
- package/debug-log.js +3 -1
- package/package.json +1 -1
package/bin/fetch-log.mjs
CHANGED
package/debug-log.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.DebugLog = exports.Bundler = void 0;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
6
|
Components.utils.importGlobalProperties(['FormData']);
|
|
7
|
+
const { ZOTERO_CONFIG } = ChromeUtils.importESModule('resource://zotero/config.mjs');
|
|
7
8
|
const pkg = require('./package.json');
|
|
8
9
|
const UZip = tslib_1.__importStar(require("uzip"));
|
|
9
10
|
class Bundler {
|
|
@@ -153,7 +154,8 @@ class DebugLogSender {
|
|
|
153
154
|
preferences(preferences) {
|
|
154
155
|
const prefs = {};
|
|
155
156
|
const names = [];
|
|
156
|
-
for (
|
|
157
|
+
for (let pref of preferences) {
|
|
158
|
+
pref = pref.replace(/^:/, ZOTERO_CONFIG.PREF_BRANCH);
|
|
157
159
|
if (pref.endsWith('.')) {
|
|
158
160
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
|
|
159
161
|
const childkeys = Services.prefs.getBranch(pref).getChildList('', {});
|