mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Remove the unused PDFViewerApplication.documentFingerprint
property
This property isn't accessed anywhere in the `web/app.js` file, and is also not being reset in `PDFViewerApplication.close`. Hence it seems that it can simply be removed, especially since the fingerprint is already synchronously available through `PDFViewerApplication.pdfDocument.fingerprint` (provided that a document is loaded).
This commit is contained in:
parent
99f8f2c275
commit
e522b2d87e
1 changed files with 2 additions and 3 deletions
|
@ -973,8 +973,7 @@ let PDFViewerApplication = {
|
|||
this.toolbar.setPagesCount(pdfDocument.numPages, false);
|
||||
this.secondaryToolbar.setPagesCount(pdfDocument.numPages);
|
||||
|
||||
let id = this.documentFingerprint = pdfDocument.fingerprint;
|
||||
let store = this.store = new ViewHistory(id);
|
||||
const store = this.store = new ViewHistory(pdfDocument.fingerprint);
|
||||
|
||||
let baseDocumentUrl;
|
||||
if (typeof PDFJSDev === 'undefined' || PDFJSDev.test('GENERIC')) {
|
||||
|
@ -1003,7 +1002,7 @@ let PDFViewerApplication = {
|
|||
// The browsing history is only enabled when the viewer is standalone,
|
||||
// i.e. not when it is embedded in a web page.
|
||||
let resetHistory = !AppOptions.get('showPreviousViewOnLoad');
|
||||
this.pdfHistory.initialize(id, resetHistory);
|
||||
this.pdfHistory.initialize(pdfDocument.fingerprint, resetHistory);
|
||||
|
||||
if (this.pdfHistory.initialBookmark) {
|
||||
this.initialBookmark = this.pdfHistory.initialBookmark;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue