mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #13156 from Snuffleupagus/outline-destRef-null
Prevent errors, in `PDFOutlineViewer._getPageNumberToDestHash`, for invalid `destRef` values (PR 12777 follow-up)
This commit is contained in:
commit
d47b30ef54
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ class PDFOutlineViewer extends BaseTreeViewer {
|
|||
if (Array.isArray(explicitDest)) {
|
||||
const [destRef] = explicitDest;
|
||||
|
||||
if (typeof destRef === "object") {
|
||||
if (destRef instanceof Object) {
|
||||
pageNumber = this.linkService._cachedPageNumber(destRef);
|
||||
|
||||
if (!pageNumber) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue