Skip to content

Commit

Permalink
Merge pull request mozilla#5639 from Snuffleupagus/DocumentProperties…
Browse files Browse the repository at this point in the history
…-faster-fileSize-2

Attempt to display the File size quicker in the Document Properties dialog (PR 5554 followup)
  • Loading branch information
timvandermeij authored and speedplane committed Feb 24, 2015
2 parents 0aa205e + 244ea2d commit 184c0ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 184c0ec

Please sign in to comment.