Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Removing unneeded compatibility.js from pdf.js #65

Merged
merged 3 commits into from
Apr 11, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.