1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 17:48:07 +02:00

Remove the deprecated PDFFindController.executeCommand method

This *partially* reverts commit fa8c0ef616, since it's now been included in two official releases.
This commit is contained in:
Jonas Jenwald 2022-03-02 11:21:47 +01:00
parent f2c9a6bc24
commit 38d30f3be5
3 changed files with 6 additions and 31 deletions

View file

@ -77,11 +77,7 @@ eventBus.on("pagesinit", function () {
// We can try searching for things.
if (SEARCH_FOR) {
if (!pdfFindController._onFind) {
pdfFindController.executeCommand("find", { query: SEARCH_FOR });
} else {
eventBus.dispatch("find", { type: "", query: SEARCH_FOR });
}
eventBus.dispatch("find", { type: "", query: SEARCH_FOR });
}
});