Merge pull request #11382 from Snuffleupagus/pr-10217-follow-up

Fix an incorrect condition in `BaseViewer.isPageVisible` (PR 10217 follow-up)
This commit is contained in:
Tim van der Meij 2019-12-08 19:52:48 +01:00 committed by GitHub
commit 3d549f12fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -935,7 +935,7 @@ class BaseViewer {
if (!this.pdfDocument) {
return false;
}
if (this.pageNumber < 1 || pageNumber > this.pagesCount) {
if (pageNumber < 1 || pageNumber > this.pagesCount) {
console.error(
`${this._name}.isPageVisible: "${pageNumber}" is out of bounds.`);
return false;