Merge pull request #6080 from Snuffleupagus/issue-6079
Ensure that PDFHistory does not incorrectly replace the initial document hash (issue 6079)
This commit is contained in:
commit
6203dcd292
@ -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…
Reference in New Issue
Block a user