mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
- When the minified version is used the resolver of the worker can not find it properly and throws 404 error. - The problem was that: - It was getting the current name of the file. - It was replacing **.js** by **.worker.js** - When it was loading the unminified version it was working fine because: - *pdf.js - .js + .worker.js* = **pdf.worker.js** - When it was loading the minified version it didtn't work because: - *pdf.min.js - .js + .worker.js* = **pdf.min.worker.js** - **pdf.min.worker.js** doesn't exist the real file name is **pdf.worker.min.js** |
||
---|---|---|
.. | ||
core | ||
display | ||
images | ||
shared | ||
doc_helper.js | ||
license_header.js | ||
main_loader.js | ||
pdf.js | ||
pdf.worker.entry.js | ||
pdf.worker.js | ||
worker_loader.js |