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:
parent
f2c9a6bc24
commit
38d30f3be5
3 changed files with 6 additions and 31 deletions
|
@ -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 });
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue