1
0
Fork 0
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:
Brendan Dahl 2012-01-11 17:18:01 -08:00
commit 93bb2cf0d3
3 changed files with 26 additions and 55 deletions

View file

@ -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;