Remove IE9 specific XMLHttpRequest
polyfills that utilize VBArray
This commit is contained in:
parent
935c5c587f
commit
150ac0788f
@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* eslint-disable no-extend-native */
|
||||
/* globals VBArray, PDFJS, global */
|
||||
/* globals PDFJS */
|
||||
|
||||
// Skip compatibility checks for the extensions and if we already ran
|
||||
// this module.
|
||||
@ -86,19 +86,6 @@ PDFJS.compatibilityChecked = true;
|
||||
},
|
||||
});
|
||||
|
||||
// Support: IE9
|
||||
if (typeof VBArray !== 'undefined') {
|
||||
Object.defineProperty(xhrPrototype, 'response', {
|
||||
get: function xmlHttpRequestResponseGet() {
|
||||
if (this.responseType === 'arraybuffer') {
|
||||
return new Uint8Array(new VBArray(this.responseBody).toArray());
|
||||
}
|
||||
return this.responseText;
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
Object.defineProperty(xhrPrototype, 'response', {
|
||||
get: function xmlHttpRequestResponseGet() {
|
||||
if (this.responseType !== 'arraybuffer') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user