Skip to content

Commit

Permalink
Merge pull request mozilla#8262 from tcorral/master
Browse files Browse the repository at this point in the history
Fix worker resolution on using minified version
  • Loading branch information
yurydelendik authored Apr 13, 2017
2 parents 32e01cd + 010d38a commit ad1023f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/display/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit ad1023f

Please sign in to comment.