mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-21 23:58:07 +02:00
Remove a redundant PDFViewer.currentScale
call from PDFViewerApplication.load
Since this call occurs *before* the `PDFViewer.setDocument` call, it won't actually cause any scale change. Furthermore, moving it should not be necessary, since the `scale` is already used as the fallback case in `PDFViewerApplication.setInitialView` (provided it's non-zero, which isn't even the case in the default viewer). Hence this patch should cause no functional changes at all, since it simply removes a piece of unnecessary code.
This commit is contained in:
parent
8e9b4b5ff2
commit
4aab3cef4a
1 changed files with 0 additions and 1 deletions
|
@ -907,7 +907,6 @@ var PDFViewerApplication = {
|
|||
this.pdfDocumentProperties.setDocument(pdfDocument, this.url);
|
||||
|
||||
let pdfViewer = this.pdfViewer;
|
||||
pdfViewer.currentScale = scale;
|
||||
pdfViewer.setDocument(pdfDocument);
|
||||
let firstPagePromise = pdfViewer.firstPagePromise;
|
||||
let pagesPromise = pdfViewer.pagesPromise;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue