mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-23 08:38:06 +02:00
Merge pull request #5448 from thejdeep/androidfix
Added try/catch #5427
This commit is contained in:
commit
7f24b1d602
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