Merge pull request #2252 from yurydelendik/no-visible-pages-undef
Removes 'visiblePages[0] is undefined' error
This commit is contained in:
commit
2f8421ca3e
@ -2772,6 +2772,9 @@ function updateViewarea() {
|
||||
return;
|
||||
var visible = PDFView.getVisiblePages();
|
||||
var visiblePages = visible.views;
|
||||
if (visiblePages.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
PDFView.renderHighestPriority();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user