mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
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
|
||
---|---|---|
.. | ||
images | ||
.gitignore | ||
compatibility.js | ||
compressed.tracemonkey-pldi-09.pdf | ||
debugger.js | ||
firefoxcom.js | ||
index.html.template | ||
pdf_find_bar.js | ||
pdf_find_controller.js | ||
text_layer_builder.js | ||
ui_utils.js | ||
viewer-snippet-b2g-activity-header.html | ||
viewer-snippet-firefox-extension.html | ||
viewer-snippet.html | ||
viewer.css | ||
viewer.html | ||
viewer.js |