Merge pull request #8262 from tcorral/master
Fix worker resolution on using minified version
This commit is contained in:
commit
ad1023ff55
@ -1097,7 +1097,7 @@ var PDFWorker = (function PDFWorkerClosure() {
|
|||||||
if (typeof PDFJSDev !== 'undefined' &&
|
if (typeof PDFJSDev !== 'undefined' &&
|
||||||
PDFJSDev.test('PRODUCTION && !(MOZCENTRAL || FIREFOX)') &&
|
PDFJSDev.test('PRODUCTION && !(MOZCENTRAL || FIREFOX)') &&
|
||||||
pdfjsFilePath) {
|
pdfjsFilePath) {
|
||||||
return pdfjsFilePath.replace(/\.js$/i, '.worker.js');
|
return pdfjsFilePath.replace(/(\.(?:min\.)?js)$/i, '.worker$1');
|
||||||
}
|
}
|
||||||
error('No PDFJS.workerSrc specified');
|
error('No PDFJS.workerSrc specified');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user