mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
[api-major] Remove various deprecated functionality and options
This commit is contained in:
parent
0fc0dc3960
commit
f87ec67ab1
6 changed files with 1 additions and 91 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue