Render ink annotation images when previewing attachment annotations

This commit is contained in:
Martynas Bagdonas 2024-12-17 18:29:48 +02:00 committed by Dan Stillman
parent e4a21b174f
commit e3ae991bb3

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