mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
Disables worker if XHR does not support arraybuffer
This commit is contained in:
parent
9c87fa24f7
commit
f9befa189b
1 changed files with 4 additions and 0 deletions
|
@ -163,6 +163,10 @@ if (typeof PDFJS === 'undefined') {
|
|||
if ('responseType' in xhr) {
|
||||
return;
|
||||
}
|
||||
|
||||
// The worker will be using XHR, so we can save time and disable worker.
|
||||
PDFJS.disableWorker = true;
|
||||
|
||||
// Support: IE9
|
||||
if (typeof VBArray !== 'undefined') {
|
||||
Object.defineProperty(xhrPrototype, 'response', {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue