Make worker support work again after file split. Add PDFJS_WORKER_DIR/PDFJS_WORKER_FILE to specify where to load files if worker support is enabled

This commit is contained in:
Julian Viereck 2011-10-28 14:32:36 +02:00
parent 21a6467b23
commit 1e6d1f9922
8 changed files with 91 additions and 46 deletions

View file

@ -1,2 +1,7 @@
<!-- This snippet is used in production, see Makefile -->
<script type="text/javascript" src="../build/pdf.js"></script>
<script type="text/javascript">
// This specifies the location of the pdf.js file. This is necessary to
// spawn the web worker.
var PDFJS_WORKER_FILE = "../build/pdf.js";
</script>