Merge pull request #8309 from vologab/feature/allow_query_string_for_pdfjs
Allow use versions for pdf.js script (i.e. - pdf.js?2412313)
This commit is contained in:
commit
71bbcfad8a
@ -1064,7 +1064,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(/(\.(?:min\.)?js)$/i, '.worker$1');
|
return pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i, '.worker$1$2');
|
||||||
}
|
}
|
||||||
error('No PDFJS.workerSrc specified');
|
error('No PDFJS.workerSrc specified');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user