mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
[CRX] Pass expected length of stream to viewer
To get a progress bar for POST/FTP requests in Chromium.
This commit is contained in:
parent
acb33b3e7d
commit
eaf7daf7db
3 changed files with 28 additions and 14 deletions
|
@ -1821,7 +1821,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;
|
||||
// }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue