1
0
Fork 0
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:
Yury Delendik 2014-05-29 12:26:16 -05:00
parent 825762f22a
commit 9c87fa24f7
4 changed files with 6 additions and 22 deletions

View file

@ -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 });
})();