mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
Merge pull request #4149 from timvandermeij/document-properties
Document properties
This commit is contained in:
commit
2c34807fa3
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