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) {
|
if (args.onProgressiveData) {
|
||||||
|
// Some legacy browsers might throw an exception.
|
||||||
|
try {
|
||||||
xhr.responseType = 'moz-chunked-arraybuffer';
|
xhr.responseType = 'moz-chunked-arraybuffer';
|
||||||
|
} catch(e) {}
|
||||||
if (xhr.responseType === 'moz-chunked-arraybuffer') {
|
if (xhr.responseType === 'moz-chunked-arraybuffer') {
|
||||||
pendingRequest.onProgressiveData = args.onProgressiveData;
|
pendingRequest.onProgressiveData = args.onProgressiveData;
|
||||||
pendingRequest.mozChunked = true;
|
pendingRequest.mozChunked = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue