Browse Source

Ensure that PDFHistory does not incorrectly replace the initial document hash (issue 6079)

This is fallout from PR 5971; fixes 6079.
Jonas Jenwald 10 years ago
parent
commit
27713f9454
  1. 8
      web/viewer.js

8
web/viewer.js

@ -799,8 +799,12 @@ var PDFViewerApplication = {
window.history.replaceState(null, ''); window.history.replaceState(null, '');
} }
self.pdfHistory.initialize(self.documentFingerprint); 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() { store.initializedPromise.then(function resolved() {

Loading…
Cancel
Save