Skip to content

Commit

Permalink
Merge pull request #11382 from Snuffleupagus/pr-10217-follow-up
Browse files Browse the repository at this point in the history
Fix an incorrect condition in `BaseViewer.isPageVisible` (PR 10217 follow-up)
  • Loading branch information
timvandermeij authored Dec 8, 2019
2 parents 514b500 + 06b1f61 commit 3d549f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/base_viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3d549f1

Please sign in to comment.