1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

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

Fixes 6121.

Note: This "regressed" in PR 5823.
This commit is contained in:
Jonas Jenwald 2015-06-16 13:16:12 +02:00
parent d7e6490c44
commit 7cb62089ad

View file

@ -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);