mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Fix exception when rotate page without a document
This commit is contained in:
parent
fef46a2121
commit
a059f9fcbb
1 changed files with 4 additions and 0 deletions
|
@ -470,6 +470,10 @@ var PDFViewer = (function pdfViewer() {
|
|||
*/
|
||||
scrollPageIntoView: function PDFViewer_scrollPageIntoView(pageNumber,
|
||||
dest) {
|
||||
if (!this.pdfDocument) {
|
||||
return;
|
||||
}
|
||||
|
||||
var pageView = this._pages[pageNumber - 1];
|
||||
|
||||
if (this.isInPresentationMode) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue