mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Merge pull request #969 from arturadib/fix-worker-loader
Fix worker_loader.js for examples/. Simpler code
This commit is contained in:
commit
93bb2cf0d3
3 changed files with 26 additions and 55 deletions
|
@ -629,8 +629,7 @@ var PDFDoc = (function PDFDocClosure() {
|
|||
var worker = new Worker(workerSrc);
|
||||
|
||||
var messageHandler = new MessageHandler('main', worker);
|
||||
// Tell the worker the file it was created from.
|
||||
messageHandler.send('workerSrc', workerSrc);
|
||||
|
||||
messageHandler.on('test', function pdfDocTest(supportTypedArray) {
|
||||
if (supportTypedArray) {
|
||||
this.worker = worker;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue