1
0
Fork 0
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:
Jonas Jenwald 2015-01-13 09:38:34 +01:00
parent 5bf87c66ff
commit af6170ffd0

View file

@ -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);