1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 07:08:08 +02:00
pdf.js/src
Jonas Jenwald 21c8dd4842 Combine the pdfjsFilePath and fallback workerSrc handling in src/display/api.js
With the way that the `getWorkerSrc()` helper function is implemented now, there's no longer a particularly strong reason for keeping the global `pdfjsFilePath` variable around.
With this patch the fallback `workerSrc` will thus, assuming is wasn't already set, be set to the "pdfjsFilePath" which simplifies the `getWorkerSrc()` function and reduces the amount of global state.

Finally, the global `workerSrc` variable was renamed to prevent shadowing.
2018-10-09 13:47:48 +02:00
..
core Add support of Ink annotation 2018-10-03 00:28:49 +02:00
display Combine the pdfjsFilePath and fallback workerSrc handling in src/display/api.js 2018-10-09 13:47:48 +02:00
images Vectorize the logo. 2012-10-29 14:08:52 -04:00
shared Add a Symbol polyfill, using core-js, to allow using for...of loops 2018-09-29 16:05:00 +02:00
doc_helper.js [api-major] Completely remove the global PDFJS object 2018-03-01 18:13:27 +01:00
license_header.js Update to the current year, i.e. 2018, in the bundle license headers 2018-08-28 23:46:56 +02:00
license_header_libre.js Update to the current year, i.e. 2018, in the bundle license headers 2018-08-28 23:46:56 +02:00
pdf.image_decoders.js Add a gulp image_decoders command to allow packaging/distributing the image decoders (i.e. jpg.js, jpx.js, jbig2.js) separately from the main PDF.js library 2018-06-16 17:56:54 +02:00
pdf.js [api-minor] Remove the obsolete createBlob helper function 2018-08-19 13:37:19 +02:00
pdf.worker.entry.js Rename the globals to shorter names. 2018-03-16 11:08:56 -07:00
pdf.worker.js Adds Streams API support for networking task of PDF.js project. 2017-07-28 02:32:30 +05:30
worker_loader.js Moves global scope out of shared/util. 2017-08-22 18:20:52 -05:00