mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +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
|
@ -770,26 +770,6 @@ class PDFDocumentProxy {
|
|||
this._pdfInfo = pdfInfo;
|
||||
this._transport = transport;
|
||||
|
||||
if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
|
||||
Object.defineProperty(this, "getJavaScript", {
|
||||
value: () => {
|
||||
deprecated(
|
||||
"`PDFDocumentProxy.getJavaScript`, " +
|
||||
"please use `PDFDocumentProxy.getJSActions` instead."
|
||||
);
|
||||
return this.getJSActions().then(js => {
|
||||
if (!js) {
|
||||
return js;
|
||||
}
|
||||
const jsArr = [];
|
||||
for (const name in js) {
|
||||
jsArr.push(...js[name]);
|
||||
}
|
||||
return jsArr;
|
||||
});
|
||||
},
|
||||
});
|
||||
}
|
||||
if (typeof PDFJSDev === "undefined" || PDFJSDev.test("TESTING")) {
|
||||
// For testing purposes.
|
||||
Object.defineProperty(this, "getXFADatasets", {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue