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 ace4d92136
commit 035a03fdf2

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');