Browse Source

Disables worker if XHR does not support arraybuffer

Yury Delendik 11 years ago
parent
commit
f9befa189b
  1. 4
      web/compatibility.js

4
web/compatibility.js

@ -163,6 +163,10 @@ if (typeof PDFJS === 'undefined') {
if ('responseType' in xhr) { if ('responseType' in xhr) {
return; return;
} }
// The worker will be using XHR, so we can save time and disable worker.
PDFJS.disableWorker = true;
// Support: IE9 // Support: IE9
if (typeof VBArray !== 'undefined') { if (typeof VBArray !== 'undefined') {
Object.defineProperty(xhrPrototype, 'response', { Object.defineProperty(xhrPrototype, 'response', {

Loading…
Cancel
Save