mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Merge pull request #3124 from mduan/issue3118-1
Update loading bar during onprogress of range requests
This commit is contained in:
commit
a081c2d0f1
4 changed files with 56 additions and 8 deletions
|
@ -479,6 +479,12 @@ var RangedChromeActions = (function RangedChromeActionsClosure() {
|
|||
begin: args.begin,
|
||||
chunk: args.chunk
|
||||
}, '*');
|
||||
},
|
||||
onProgress: function RangedChromeActions_onProgress(evt) {
|
||||
domWindow.postMessage({
|
||||
pdfjsLoadAction: 'rangeProgress',
|
||||
loaded: evt.loaded,
|
||||
}, '*');
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue