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

Fix global pdfjsImagePath #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/node_modules

*.orig.js
/.idea
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ node node_modules/uglifycss/uglifycss "$source/web/viewer.css" > viewer.css
node grunt/css-prefix.js viewer.css viewer.css pdfjs
cat viewer-overwrites.css >> viewer.css;

sed -r 's/url\((")?images\//url\(\1@pdfjsImagePath\//g' < viewer.css > viewer.less
sed -r 's/url\('\''images\//url\('\''@{pdfjsImagePath}\//g' < viewer.css > viewer.less

cp -a "$source/web/cmaps/" "$source/web/images/" "$source/web/locale/" .
1,881 changes: 1,878 additions & 3 deletions viewer.css

Large diffs are not rendered by default.

2,122 changes: 2,120 additions & 2 deletions viewer.less

Large diffs are not rendered by default.