mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Remove 'javaScript' from GetDoc
This commit is contained in:
parent
4bfcb27d0b
commit
069f0cc8c0
2 changed files with 21 additions and 8 deletions
|
@ -272,10 +272,7 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() {
|
|||
* JavaScript strings in the name tree.
|
||||
*/
|
||||
getJavaScript: function PDFDocumentProxy_getJavaScript() {
|
||||
return new Promise(function (resolve) {
|
||||
var js = this.pdfInfo.javaScript;
|
||||
resolve(js);
|
||||
}.bind(this));
|
||||
return this.transport.getJavaScript();
|
||||
},
|
||||
/**
|
||||
* @return {Promise} A promise that is resolved with an {Array} that is a
|
||||
|
@ -1063,6 +1060,16 @@ var WorkerTransport = (function WorkerTransportClosure() {
|
|||
}.bind(this));
|
||||
},
|
||||
|
||||
getJavaScript: function WorkerTransport_getJavaScript() {
|
||||
return new Promise(function (resolve) {
|
||||
this.messageHandler.send('GetJavaScript', null,
|
||||
function transportJavaScript(js) {
|
||||
resolve(js);
|
||||
}
|
||||
);
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
getOutline: function WorkerTransport_getOutline() {
|
||||
return new Promise(function (resolve) {
|
||||
this.messageHandler.send('GetOutline', null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue