From 7cb62089ad1a42286c81c643d4f1166642bd7460 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Tue, 16 Jun 2015 13:16:12 +0200 Subject: [PATCH] Fix a typo causing a TypeError when attempting to call pdfHistory_clearHistoryState (issue 6121) Fixes 6121. Note: This "regressed" in PR 5823. --- web/viewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/viewer.js b/web/viewer.js index 36178a782..32ed42843 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -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);