Skip to content

Commit

Permalink
Fix a typo causing a TypeError when attempting to call pdfHistory_cle…
Browse files Browse the repository at this point in the history
…arHistoryState (issue 6121)

Fixes 6121.

Note: This "regressed" in PR 5823.
  • Loading branch information
Snuffleupagus committed Jun 16, 2015
1 parent d7e6490 commit 7cb6208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ var PDFViewerApplication = {
// The browsing history is only enabled when the viewer is standalone,
// i.e. not when it is embedded in a web page.
if (!self.preferenceShowPreviousViewOnLoad) {
PDFHistory.clearHistoryState();
self.pdfHistory.clearHistoryState();
}
self.pdfHistory.initialize(self.documentFingerprint);

Expand Down

0 comments on commit 7cb6208

Please sign in to comment.