mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Allow use versions for pdf.js script (i.e. - pdf.js?2412313)
This commit is contained in:
parent
5ad3611cc4
commit
319ea0f350
1 changed files with 1 additions and 1 deletions
|
@ -1064,7 +1064,7 @@ var PDFWorker = (function PDFWorkerClosure() {
|
|||
if (typeof PDFJSDev !== 'undefined' &&
|
||||
PDFJSDev.test('PRODUCTION && !(MOZCENTRAL || FIREFOX)') &&
|
||||
pdfjsFilePath) {
|
||||
return pdfjsFilePath.replace(/(\.(?:min\.)?js)$/i, '.worker$1');
|
||||
return pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i, '.worker$1$2');
|
||||
}
|
||||
error('No PDFJS.workerSrc specified');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue