diff --git a/web/base_viewer.js b/web/base_viewer.js index 3fec6934b..fb05d21f2 100644 --- a/web/base_viewer.js +++ b/web/base_viewer.js @@ -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;