Merge pull request #9459 from tonyjin/respect-worker-src
Respect workerSrc if set
This commit is contained in:
commit
25293628ff
@ -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…
Reference in New Issue
Block a user