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:
parent
43dbc3a84d
commit
493c25dcaa
2 changed files with 118 additions and 93 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue