mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Fixes PDFDocumentProxy.getDownloadInfo API name (and refactoring)
This commit is contained in:
parent
3c6ac0dad5
commit
e5e9c6e243
4 changed files with 16 additions and 25 deletions
|
@ -76,7 +76,7 @@ var DocumentProperties = {
|
|||
this.fileName = getPDFFileNameFromURL(PDFView.url);
|
||||
|
||||
// Get the file size.
|
||||
PDFView.pdfDocument.dataLoaded().then(function(data) {
|
||||
PDFView.pdfDocument.getDownloadInfo().then(function(data) {
|
||||
self.setFileSize(data.length);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue