mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Ensure that PDFHistory does not incorrectly replace the initial document hash (issue 6079)
This is fallout from PR 5971; fixes 6079.
This commit is contained in:
parent
82c5cf6617
commit
27713f9454
1 changed files with 6 additions and 2 deletions
|
@ -799,8 +799,12 @@ var PDFViewerApplication = {
|
|||
window.history.replaceState(null, '');
|
||||
}
|
||||
self.pdfHistory.initialize(self.documentFingerprint);
|
||||
self.initialDestination = self.pdfHistory.initialDestination;
|
||||
self.initialBookmark = self.pdfHistory.initialBookmark;
|
||||
|
||||
if (self.pdfHistory.initialDestination) {
|
||||
self.initialDestination = self.pdfHistory.initialDestination;
|
||||
} else if (self.pdfHistory.initialBookmark) {
|
||||
self.initialBookmark = self.pdfHistory.initialBookmark;
|
||||
}
|
||||
}
|
||||
|
||||
store.initializedPromise.then(function resolved() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue