mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Move the workerPort
from the global PDFJS
object and into GlobalWorkerOptions
instead
This commit is contained in:
parent
003bd4044b
commit
45adf33187
4 changed files with 4 additions and 10 deletions
2
external/dist/webpack.js
vendored
2
external/dist/webpack.js
vendored
|
@ -18,7 +18,7 @@ var pdfjs = require('./build/pdf.js');
|
|||
var PdfjsWorker = require('worker-loader!./build/pdf.worker.js');
|
||||
|
||||
if (typeof window !== 'undefined' && 'Worker' in window) {
|
||||
pdfjs.PDFJS.workerPort = new PdfjsWorker();
|
||||
pdfjs.GlobalWorkerOptions.workerPort = new PdfjsWorker();
|
||||
}
|
||||
|
||||
module.exports = pdfjs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue