Fix 'Ready' message sequence for Firefox ext disabled worker.
This commit is contained in:
parent
5d797e1a85
commit
e36b04e1ff
@ -414,9 +414,9 @@ PDFJS.getDocument = function getDocument(src,
|
||||
throw new Error('Loading aborted');
|
||||
}
|
||||
var messageHandler = new MessageHandler(docId, workerId, worker.port);
|
||||
messageHandler.send('Ready', null);
|
||||
var transport = new WorkerTransport(messageHandler, task, rangeTransport);
|
||||
task._transport = transport;
|
||||
messageHandler.send('Ready', null);
|
||||
});
|
||||
}).catch(task._capability.reject);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user