diff --git a/web/app.js b/web/app.js index 64e3e86c2..4e77cd501 100644 --- a/web/app.js +++ b/web/app.js @@ -2286,7 +2286,7 @@ function webViewerNamedAction(evt) { case "Find": if (!PDFViewerApplication.supportsIntegratedFind) { - PDFViewerApplication?.findBar.toggle(); + PDFViewerApplication.findBar?.toggle(); } break; @@ -2517,7 +2517,7 @@ function webViewerUpdateFindMatchesCount({ matchesCount }) { if (PDFViewerApplication.supportsIntegratedFind) { PDFViewerApplication.externalServices.updateFindMatchesCount(matchesCount); } else { - PDFViewerApplication.findBar.updateResultsCount(matchesCount); + PDFViewerApplication.findBar?.updateResultsCount(matchesCount); } }