mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Remove IE9 specific XMLHttpRequest
polyfills that utilize VBArray
This commit is contained in:
parent
935c5c587f
commit
150ac0788f
1 changed files with 1 additions and 14 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue