mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Document properties
This commit is contained in:
parent
c6d201b13b
commit
5f7ded4ff6
10 changed files with 385 additions and 18 deletions
|
@ -925,10 +925,14 @@ var WorkerTransport = (function WorkerTransportClosure() {
|
|||
},
|
||||
|
||||
dataLoaded: function WorkerTransport_dataLoaded() {
|
||||
if (this.dataLoadedPromise) {
|
||||
return this.dataLoadedPromise;
|
||||
}
|
||||
var promise = new PDFJS.LegacyPromise();
|
||||
this.messageHandler.send('DataLoaded', null, function(args) {
|
||||
promise.resolve(args);
|
||||
});
|
||||
this.dataLoadedPromise = promise;
|
||||
return promise;
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue