mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #9459 from tonyjin/respect-worker-src
Respect workerSrc if set
This commit is contained in:
commit
25293628ff
1 changed files with 3 additions and 3 deletions
|
@ -1202,12 +1202,12 @@ var PDFWorker = (function PDFWorkerClosure() {
|
|||
let nextFakeWorkerId = 0;
|
||||
|
||||
function getWorkerSrc() {
|
||||
if (typeof workerSrc !== 'undefined') {
|
||||
return workerSrc;
|
||||
}
|
||||
if (getDefaultSetting('workerSrc')) {
|
||||
return getDefaultSetting('workerSrc');
|
||||
}
|
||||
if (typeof workerSrc !== 'undefined') {
|
||||
return workerSrc;
|
||||
}
|
||||
if (typeof PDFJSDev !== 'undefined' &&
|
||||
PDFJSDev.test('PRODUCTION && !(MOZCENTRAL || FIREFOX)') &&
|
||||
pdfjsFilePath) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue