mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-23 08:38:06 +02:00
Fix of pdf not loading on android (issue 5427)
Fix for pdf on android not visible Fix for pdf on android not visible
This commit is contained in:
parent
39a29cfe03
commit
46238c30cf
1 changed files with 4 additions and 1 deletions
|
@ -116,7 +116,10 @@ var NetworkManager = (function NetworkManagerClosure() {
|
|||
}
|
||||
|
||||
if (args.onProgressiveData) {
|
||||
xhr.responseType = 'moz-chunked-arraybuffer';
|
||||
// Some legacy browsers might throw an exception.
|
||||
try {
|
||||
xhr.responseType = 'moz-chunked-arraybuffer';
|
||||
} catch(e) {}
|
||||
if (xhr.responseType === 'moz-chunked-arraybuffer') {
|
||||
pendingRequest.onProgressiveData = args.onProgressiveData;
|
||||
pendingRequest.mozChunked = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue