mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 23:28:06 +02:00
Removes mozResponseArrayBuffer
This commit is contained in:
parent
825762f22a
commit
9c87fa24f7
4 changed files with 6 additions and 22 deletions
|
@ -160,7 +160,7 @@ if (typeof PDFJS === 'undefined') {
|
|||
value: function xmlHttpRequestOverrideMimeType(mimeType) {}
|
||||
});
|
||||
}
|
||||
if ('response' in xhr || 'responseArrayBuffer' in xhr) {
|
||||
if ('responseType' in xhr) {
|
||||
return;
|
||||
}
|
||||
// Support: IE9
|
||||
|
@ -189,7 +189,7 @@ if (typeof PDFJS === 'undefined') {
|
|||
for (i = 0; i < n; ++i) {
|
||||
result[i] = text.charCodeAt(i) & 0xFF;
|
||||
}
|
||||
return result;
|
||||
return result.buffer;
|
||||
}
|
||||
Object.defineProperty(xhrPrototype, 'response', { get: responseGetter });
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue