Item pane header: Only pre-cache CSL.Engine if set to bibEntry mode

This commit is contained in:
Abe Jellinek 2025-10-08 10:18:29 -04:00 • committed by Dan Stillman
parent 5cb537274e
commit e9dd050229

View file

@ -83,7 +83,9 @@
];
this._bibEntryCache = new LRUCache();
this._cacheCSLEngine();
if (Zotero.Prefs.get(PREF_HEADER_MODE) === 'bibEntry') {
this._cacheCSLEngine();
}
this.title = this.querySelector('.title');
this.titleField = this.title.querySelector('editable-text');