1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Un-inline pdf.js for the extension/mozcentral and remove fetch pdf by content code.

This commit is contained in:
Brendan Dahl 2012-10-29 12:44:18 -07:00
parent 3c5a9ba64b
commit babd8df176
5 changed files with 25 additions and 68 deletions

View file

@ -1,15 +1,4 @@
<!-- This snippet is used in firefox extension, see Makefile -->
<base href="resource://pdf.js/web/" />
<script type="text/javascript" src="l10n.js"></script>
<script type="text/javascript" id="PDFJS_SCRIPT_TAG">
<!--
// pdf.js is inlined here because resource:// urls won't work
// for loading workers.
//#include ../build/pdf.js
-->
</script>
<script type="text/javascript">
// This specifies the location of the pdf.js file.
PDFJS.isFirefoxExtension = true;
PDFJS.workerSrc = 'none';
</script>
<script type="text/javascript" src="../build/pdf.js"></script>

View file

@ -44,7 +44,7 @@ var FindStates = {
var ANNOT_MIN_SIZE = 10;
//#if (GENERIC || CHROME)
//#if (FIREFOX || MOZCENTRAL || B2G || GENERIC || CHROME)
//PDFJS.workerSrc = '../build/pdf.js';
//#endif