mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Remove the API/Worker version warning message in TESTING
mode
The warning messages turn out to be more annoying than helpful when looking at the `console` during tests, so let's just remove them.
This commit is contained in:
parent
10165c070e
commit
229f6f34d1
2 changed files with 7 additions and 9 deletions
|
@ -395,8 +395,8 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
|
|||
}
|
||||
return worker.messageHandler.sendWithPromise('GetDocRequest', {
|
||||
docId,
|
||||
apiVersion: (typeof PDFJSDev !== 'undefined' ?
|
||||
PDFJSDev.eval('BUNDLE_VERSION') : null),
|
||||
apiVersion: typeof PDFJSDev !== 'undefined' && !PDFJSDev.test('TESTING') ?
|
||||
PDFJSDev.eval('BUNDLE_VERSION') : null,
|
||||
source: { // Only send the required properties, and *not* the entire object.
|
||||
data: source.data,
|
||||
url: source.url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue