Rob Wu cc04cf5d1f Configurable IMAGE_DIR for annotations
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
f8f4b3f45dc6ff5f5b2572b5387389db33616be3 moved the global variable
to the local scope, causing the extension to malfunction.

Impact: low, the only consequence is that some rarely used images
were not visible.

Trivial test:
At the center of page 2, the annotation icon
(images/annotation-comment.svg) should be visible:
http://linorg.usp.br/CTAN/macros/latex/contrib/pdfcomment/doc/pdfcomment.pdf
2013-07-09 16:24:25 +02:00
..
2012-10-29 14:08:52 -04:00
2013-02-02 16:49:19 -06:00
2013-02-15 03:53:34 +09:00
2013-07-01 11:25:46 -05:00
2012-08-31 15:48:21 -07:00
2013-07-01 11:25:46 -05:00
2013-06-25 10:33:53 -07:00
2013-06-25 16:47:44 -05:00
2012-08-31 15:48:21 -07:00
2013-06-01 08:41:30 -05:00
2013-02-02 16:49:19 -06:00
2012-08-31 15:48:21 -07:00
2013-06-01 08:41:30 -05:00
2013-06-24 20:55:12 -05:00
2013-05-07 14:22:13 -04:00
2013-05-30 17:58:48 -05:00