1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Remove useWorker variable and turn worker support whenever this is possible.

This commit is contained in:
Julian Viereck 2011-11-01 20:23:48 +01:00
parent 43dbc3a84d
commit 493c25dcaa
2 changed files with 118 additions and 93 deletions

View file

@ -47,6 +47,10 @@ var WorkerProcessorHandler = {
setup: function wphSetup(handler) {
var pdfDoc = null;
handler.on('test', function wphSetupTest(data) {
handler.send('test', data instanceof Uint8Array);
});
handler.on('workerSrc', function wphSetupWorkerSrc(data) {
// In development, the `workerSrc` message is handled in the
// `worker_loader.js` file. In production the workerProcessHandler is