mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Fixed worker_loader for examples/; simplified
This commit is contained in:
parent
ee96acfebe
commit
b2791c60a6
3 changed files with 25 additions and 56 deletions
|
@ -582,9 +582,6 @@ var PDFDoc = (function PDFDocClosure() {
|
|||
|
||||
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