Browse Source

Fix a typo causing a TypeError when attempting to call pdfHistory_clearHistoryState (issue 6121)

Fixes 6121.

Note: This "regressed" in PR 5823.
Jonas Jenwald 10 years ago
parent
commit
7cb62089ad
  1. 2
      web/viewer.js

2
web/viewer.js

@ -796,7 +796,7 @@ var PDFViewerApplication = {
// The browsing history is only enabled when the viewer is standalone, // The browsing history is only enabled when the viewer is standalone,
// i.e. not when it is embedded in a web page. // i.e. not when it is embedded in a web page.
if (!self.preferenceShowPreviousViewOnLoad) { if (!self.preferenceShowPreviousViewOnLoad) {
PDFHistory.clearHistoryState(); self.pdfHistory.clearHistoryState();
} }
self.pdfHistory.initialize(self.documentFingerprint); self.pdfHistory.initialize(self.documentFingerprint);

Loading…
Cancel
Save