Skip to content

Commit

Permalink
Chore: Removing unneeded compatibility.js from pdf.js (#65)
Browse files Browse the repository at this point in the history
- Compatibility code is now in core pdf.js file so separate file is not needed
  • Loading branch information
tonyjin authored Apr 11, 2017
1 parent 7ad5088 commit 82d582e
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 111 deletions.
2 changes: 0 additions & 2 deletions build/minify_pdfjs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ java -jar build/closure-compiler-v20161201.jar --rewrite_polyfills false --langu
java -jar build/closure-compiler-v20161201.jar --rewrite_polyfills false --language_out ECMASCRIPT5 --js src/third-party/doc/$DOC_STATIC_ASSETS_VERSION/pdf.worker.js --js_output_file src/third-party/doc/$DOC_STATIC_ASSETS_VERSION/pdf.worker.min.js

java -jar build/closure-compiler-v20161201.jar --rewrite_polyfills false --language_out ECMASCRIPT5 --js src/third-party/doc/$DOC_STATIC_ASSETS_VERSION/pdf_viewer.js --js_output_file src/third-party/doc/$DOC_STATIC_ASSETS_VERSION/pdf_viewer.min.js

java -jar build/closure-compiler-v20161201.jar --rewrite_polyfills false --language_out ECMASCRIPT5 --js src/third-party/doc/$DOC_STATIC_ASSETS_VERSION/compatibility.js --js_output_file src/third-party/doc/$DOC_STATIC_ASSETS_VERSION/compatibility.min.js
echo "-----------------------------------------------------------------------------------"
echo "Minifying pdf.js CSS with cssnano"
echo "-----------------------------------------------------------------------------------"
Expand Down
1 change: 0 additions & 1 deletion build/upgrade_pdfjs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ git clone https://github.com/mozilla/pdfjs-dist.git

echo "-----------------------------------------------------------------------------------"
echo "Copying relevant files to Preview third-party dir..."
echo "Note that we are NOT copying compatibility.js - that needs to be manually updated"
echo "-----------------------------------------------------------------------------------"
cp pdfjs-dist/build/pdf.js src/third-party/doc/$DOC_STATIC_ASSETS_VERSION/
cp pdfjs-dist/build/pdf.worker.js src/third-party/doc/$DOC_STATIC_ASSETS_VERSION/
Expand Down
1 change: 0 additions & 1 deletion src/lib/viewers/doc/docAssets.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { DOC_STATIC_ASSETS_VERSION } from '../../constants';

const STATIC_URI = `third-party/doc/${DOC_STATIC_ASSETS_VERSION}/`;
export const JS = [
`${STATIC_URI}compatibility.min.js`,
`${STATIC_URI}pdf.min.js`,
`${STATIC_URI}pdf_viewer.min.js`,
`${STATIC_URI}pdf.worker.min.js`,
Expand Down
105 changes: 0 additions & 105 deletions src/third-party/doc/0.118.0/compatibility.js

This file was deleted.

2 changes: 0 additions & 2 deletions src/third-party/doc/0.118.0/compatibility.min.js

This file was deleted.

0 comments on commit 82d582e

Please sign in to comment.