mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #12717 from Snuffleupagus/issue-12714
Ensure that the /Annots-entry, on /Page-instances, is actually an Array (issue 12714)
This commit is contained in:
commit
00b4f86db3
3 changed files with 12 additions and 5 deletions
|
@ -437,11 +437,8 @@ class Page {
|
|||
}
|
||||
|
||||
get annotations() {
|
||||
return shadow(
|
||||
this,
|
||||
"annotations",
|
||||
this._getInheritableProperty("Annots") || []
|
||||
);
|
||||
const annots = this._getInheritableProperty("Annots");
|
||||
return shadow(this, "annotations", Array.isArray(annots) ? annots : []);
|
||||
}
|
||||
|
||||
get _parsedAnnotations() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue