mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Prevent circular references in the /Pages tree
This commit is contained in:
parent
e2b30e9e9c
commit
3c7b7be100
7 changed files with 155 additions and 8 deletions
|
@ -164,9 +164,14 @@ class PDFRenderingQueue {
|
|||
break;
|
||||
case RenderingStates.INITIAL:
|
||||
this.highestPriorityPage = view.renderingId;
|
||||
view.draw().finally(() => {
|
||||
this.renderHighestPriority();
|
||||
});
|
||||
view
|
||||
.draw()
|
||||
.finally(() => {
|
||||
this.renderHighestPriority();
|
||||
})
|
||||
.catch(reason => {
|
||||
console.error(`renderView: "${reason}"`);
|
||||
});
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue