mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Attempt to display the File size quicker in the Document Properties dialog (PR 5554 followup)
This commit is contained in:
parent
5bf87c66ff
commit
af6170ffd0
1 changed files with 4 additions and 0 deletions
|
@ -403,6 +403,10 @@ var PDFViewerApplication = {
|
|||
|
||||
PDFViewerApplication.open(args.pdfUrl, 0, undefined,
|
||||
pdfDataRangeTransport);
|
||||
|
||||
if (args.length) {
|
||||
DocumentProperties.setFileSize(args.length);
|
||||
}
|
||||
break;
|
||||
case 'range':
|
||||
pdfDataRangeTransport.onDataRange(args.begin, args.chunk);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue