cc04cf5d1f
The Chrome extension activates PDF.js by inserting the script tags
in a document whose URL and location origin is identical to the PDF
file.
Because of this, the path './images/' was resolved relatively to the
location of the PDF file instead of the extension.
To fix this, the IMAGE_DIR constant is moved outside the local scope,
to allow extensions/chrome/insertviewer.js to override the value.
Originally, the IMAGE_DIR variable was a global variable, but commit
|
||
---|---|---|
.. | ||
.gitignore | ||
hide-xhtml-error.css | ||
icon16.png | ||
icon48.png | ||
icon128.png | ||
insertviewer.js | ||
manifest.json | ||
patch-worker.js | ||
pdfHandler-local.js | ||
pdfHandler.html | ||
pdfHandler.js |