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
@ -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…
Reference in New Issue
Block a user