diff --git a/web/app.js b/web/app.js index 1b27611b2..a486e02cd 100644 --- a/web/app.js +++ b/web/app.js @@ -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); diff --git a/web/pdf_find_controller.js b/web/pdf_find_controller.js index 36f4e042a..a306b7e84 100644 --- a/web/pdf_find_controller.js +++ b/web/pdf_find_controller.js @@ -736,6 +736,7 @@ class PDFFindController { state, previous, matchesCount: this._requestMatchesCount(), + rawQuery: this._state ? this._state.query : null, }); } }