mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Return the query with the findcontrols
This commit is contained in:
parent
b52b36f6a5
commit
72f48ee089
2 changed files with 8 additions and 1 deletions
|
@ -2438,12 +2438,18 @@ function webViewerUpdateFindMatchesCount({ matchesCount }) {
|
|||
}
|
||||
}
|
||||
|
||||
function webViewerUpdateFindControlState({ state, previous, matchesCount }) {
|
||||
function webViewerUpdateFindControlState({
|
||||
state,
|
||||
previous,
|
||||
matchesCount,
|
||||
rawQuery,
|
||||
}) {
|
||||
if (PDFViewerApplication.supportsIntegratedFind) {
|
||||
PDFViewerApplication.externalServices.updateFindControlState({
|
||||
result: state,
|
||||
findPrevious: previous,
|
||||
matchesCount,
|
||||
rawQuery,
|
||||
});
|
||||
} else {
|
||||
PDFViewerApplication.findBar.updateUIState(state, previous, matchesCount);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue