We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 32e01cd + 010d38a commit ad1023fCopy full SHA for ad1023f
1 file changed
src/display/api.js
@@ -1097,7 +1097,7 @@ var PDFWorker = (function PDFWorkerClosure() {
1097
if (typeof PDFJSDev !== 'undefined' &&
1098
PDFJSDev.test('PRODUCTION && !(MOZCENTRAL || FIREFOX)') &&
1099
pdfjsFilePath) {
1100
- return pdfjsFilePath.replace(/\.js$/i, '.worker.js');
+ return pdfjsFilePath.replace(/(\.(?:min\.)?js)$/i, '.worker$1');
1101
}
1102
error('No PDFJS.workerSrc specified');
1103
0 commit comments