[api-major] Remove various deprecated functionality and options

This commit is contained in:
Jonas Jenwald 2023-07-31 11:20:14 +02:00
parent 0fc0dc3960
commit f87ec67ab1
6 changed files with 1 additions and 91 deletions

View file

@ -448,18 +448,6 @@ class PDFFindController {
if (!state) {
return;
}
if (
(typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) &&
state.phraseSearch === false
) {
console.error(
"The `phraseSearch`-parameter was removed, please provide " +
"an Array of strings in the `query`-parameter instead."
);
if (typeof state.query === "string") {
state.query = state.query.match(/\S+/g);
}
}
const pdfDocument = this._pdfDocument;
const { type } = state;