1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Merge pull request #4229 from Rob--W/crx-stream-progress

Get progress bar for PDF streams in Chromium by passing the expected content length to the page
This commit is contained in:
Brendan Dahl 2014-02-26 11:12:34 -08:00
commit 0af0c6c99d
3 changed files with 28 additions and 14 deletions

View file

@ -1817,7 +1817,9 @@ document.addEventListener('DOMContentLoaded', function webViewerLoad(evt) {
// var streamUrl = response.streamUrl;
// if (streamUrl) {
// console.log('Found data stream for ' + file);
// PDFView.open(streamUrl, 0);
// PDFView.open(streamUrl, 0, undefined, undefined, {
// length: response.contentLength
// });
// PDFView.setTitleUsingUrl(file);
// return;
// }