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' &&
|
||||
PDFJSDev.test('PRODUCTION && !(MOZCENTRAL || FIREFOX)') &&
|
||||
pdfjsFilePath) {
|
||||
return pdfjsFilePath.replace(/\.js$/i, '.worker.js');
|
||||
return pdfjsFilePath.replace(/(\.(?:min\.)?js)$/i, '.worker$1');
|
||||
}
|
||||
error('No PDFJS.workerSrc specified');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user