mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Prevent run-time errors in BaseViewer
when it's falling back to SimpleLinkService
(issue 14442, PR 14295 follow-up)
This commit is contained in:
parent
236c8d4786
commit
8286066372
1 changed files with 1 additions and 1 deletions
|
@ -1541,7 +1541,7 @@ class BaseViewer {
|
|||
if (!pageView.pdfPage) {
|
||||
pageView.setPdfPage(pdfPage);
|
||||
}
|
||||
if (!this.linkService._cachedPageNumber(pdfPage.ref)) {
|
||||
if (!this.linkService._cachedPageNumber?.(pdfPage.ref)) {
|
||||
this.linkService.cachePageRef(pageView.id, pdfPage.ref);
|
||||
}
|
||||
return pdfPage;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue