mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #6122 from Snuffleupagus/issue-6121
Fix a typo causing a TypeError when attempting to call pdfHistory_clearHistoryState (issue 6121)
This commit is contained in:
commit
5f6dcf3d50
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue