Move all worker related files under worker/

This commit is contained in:
Julian Viereck 2011-06-26 20:44:13 +02:00
parent 095137ece1
commit c712712e67
4 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
<html> <html>
<head> <head>
<title>Simple pdf.js page worker viewer</title> <title>Simple pdf.js page worker viewer</title>
<script type="text/javascript" src="worker_client.js"></script> <script type="text/javascript" src="worker/client.js"></script>
<script> <script>

View File

@ -23,7 +23,7 @@ function WorkerPDFDoc(canvas) {
this.ctx = canvas.getContext("2d"); this.ctx = canvas.getContext("2d");
this.canvas = canvas; this.canvas = canvas;
this.worker = new Worker('pdf_worker.js'); this.worker = new Worker('worker/pdf.js');
this.numPage = 1; this.numPage = 1;
this.numPages = null; this.numPages = null;

View File

@ -27,10 +27,10 @@ var console = {
} }
// //
importScripts("canvas_proxy.js"); importScripts("canvas.js");
importScripts("pdf.js"); importScripts("../pdf.js");
importScripts("fonts.js"); importScripts("../fonts.js");
importScripts("glyphlist.js") importScripts("../glyphlist.js")
// Use the JpegStreamProxy proxy. // Use the JpegStreamProxy proxy.
JpegStream = JpegStreamProxy; JpegStream = JpegStreamProxy;