Browse Source

Merge pull request #3760 from jribbens/patch-1

Fix bug in api.js whereby fake workers didn't load the worker code
Brendan Dahl 12 years ago
parent
commit
f7b2b2e1f2
  1. 7
      src/display/api.js

7
src/display/api.js

@ -540,11 +540,14 @@ var WorkerTransport = (function WorkerTransportClosure() { @@ -540,11 +540,14 @@ var WorkerTransport = (function WorkerTransportClosure() {
if (supportTypedArray) {
this.worker = worker;
this.setupMessageHandler(messageHandler);
workerInitializedPromise.resolve();
} else {
globalScope.PDFJS.disableWorker = true;
this.setupFakeWorker();
this.loadFakeWorkerFiles().then(function() {
this.setupFakeWorker();
workerInitializedPromise.resolve();
}.bind(this));
}
workerInitializedPromise.resolve();
}.bind(this));
var testObj = new Uint8Array(1);

Loading…
Cancel
Save