Merge pull request #10483 from Snuffleupagus/mobile-viewer-PDFHistory-init

Update the `mobile-viewer` example to use the new `PDFHistory.initialize` format (PR 10423 follow-up)
This commit is contained in:
Tim van der Meij 2019-01-23 22:20:14 +01:00 committed by GitHub
commit f3da413ea5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ var PDFViewerApplication = {
self.pdfDocument = pdfDocument;
self.pdfViewer.setDocument(pdfDocument);
self.pdfLinkService.setDocument(pdfDocument);
self.pdfHistory.initialize(pdfDocument.fingerprint);
self.pdfHistory.initialize({ fingerprint: pdfDocument.fingerprint, });
self.loadingBar.hide();
self.setTitleUsingMetadata(pdfDocument);