mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Respect workerSrc if set
Respect user-defined workerSrc over internal overrides.
This commit is contained in:
parent
43f1f96b10
commit
3c33f32dff
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