mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Fixes all examples to require workerSrc to be set.
This commit is contained in:
parent
28d340679a
commit
601d29b14e
6 changed files with 14 additions and 17 deletions
|
@ -75,7 +75,9 @@ PDFJS.disableWorker = (PDFJS.disableWorker === undefined ?
|
|||
/**
|
||||
* Path and filename of the worker file. Required when the worker is enabled in
|
||||
* development mode. If unspecified in the production build, the worker will be
|
||||
* loaded based on the location of the pdf.js file.
|
||||
* loaded based on the location of the pdf.js file. It is recommended that
|
||||
* the workerSrc is set in a custom application to prevent issues caused by
|
||||
* third-party frameworks and libraries.
|
||||
* @var {string}
|
||||
*/
|
||||
PDFJS.workerSrc = (PDFJS.workerSrc === undefined ? null : PDFJS.workerSrc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue