mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Removes 'visiblePages[0] is undefined' error
This commit is contained in:
parent
969a2010b2
commit
ee499b46cf
1 changed files with 3 additions and 0 deletions
|
@ -2772,6 +2772,9 @@ function updateViewarea() {
|
|||
return;
|
||||
var visible = PDFView.getVisiblePages();
|
||||
var visiblePages = visible.views;
|
||||
if (visiblePages.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
PDFView.renderHighestPriority();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue