Render ink annotation images when previewing attachment annotations

This commit is contained in:
Martynas Bagdonas 2024-12-17 18:29:48 +02:00
parent aa4f942b26
commit b806b41b6f

View file

@ -106,7 +106,7 @@
let imageAnnotationRendered = false;
for (let annotation of this._annotationItems) {
if (!imageAnnotationRendered
&& annotation.annotationType === 'image'
&& ['image', 'ink'].includes(annotation.annotationType)
&& !await Zotero.Annotations.hasCacheImage(annotation)) {
try {
await Zotero.PDFWorker.renderAttachmentAnnotations(annotation.parentID);