Skip to content

Commit

Permalink
Ignore Zotero exported FreeText annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtcode committed Jan 26, 2024
1 parent 10691ef commit 1260b63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ class Page {
'Stamp'
];
annotations = annotations.filter(x => allowedSubtypes.includes(x.data.subtype)
|| ['Square', 'Ink'].includes(x.data.subtype) && !x.data.isZotero);
|| ['Square', 'Ink', 'FreeText'].includes(x.data.subtype) && !x.data.isZotero);

// Collect the operator list promises for the annotations. Each promise
// is resolved with the complete operator list for a single annotation.
Expand Down
2 changes: 1 addition & 1 deletion web/annotation_layer_builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class AnnotationLayerBuilder {
'Stamp'
];
annotations = annotations.filter(x => allowedSubtypes.includes(x.subtype)
|| ['Square', 'Ink'].includes(x.subtype) && !x.isZotero);
|| ['Square', 'Ink', 'FreeText'].includes(x.subtype) && !x.isZotero);

// Create an annotation layer div and render the annotations
// if there is at least one annotation.
Expand Down

0 comments on commit 1260b63

Please sign in to comment.