Merge pull request #12141 from phillipj/populate-findbar-on-search-hash

Populate the find field with the search query when URL has #search hash
This commit is contained in:
Tim van der Meij 2020-07-31 00:07:18 +02:00 committed by GitHub
commit c5663f2f6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2349,6 +2349,10 @@ function webViewerFindFromUrlHash(evt) {
highlightAll: true,
findPrevious: false,
});
if (PDFViewerApplication.findBar) {
PDFViewerApplication.findBar.findField.value = evt.query;
}
}
function webViewerUpdateFindMatchesCount({ matchesCount }) {