Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
fb83bfb3
Commit
fb83bfb3
authored
Feb 29, 2020
by
Ozzieisaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for #1223 (pdf-reader isn't working on chrome, IE, Edge)
parent
df7d3d18
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
viewer.js
cps/static/js/libs/viewer.js
+1
-1
readpdf.html
cps/templates/readpdf.html
+6
-6
No files found.
cps/static/js/libs/viewer.js
View file @
fb83bfb3
...
...
@@ -4372,7 +4372,7 @@ var defaultOptions = {
kind: OptionKind.WORKER
},
workerSrc: {
value: '../
../../static/js/libs
/pdf.worker.js',
value: '../
build
/pdf.worker.js',
kind: OptionKind.WORKER
}
};
...
...
cps/templates/readpdf.html
View file @
fb83bfb3
...
...
@@ -33,20 +33,20 @@ See https://github.com/adobe-type-tools/cmap-resources
<!--script src="{{ url_for('static', filename='js/libs/compatibility.js') }}"></script-->
<!-- This snippet is used in production (included from viewer.html) -->
<link
rel=
"resource"
type=
"application/l10n"
href=
"{{ url_for('static', filename='locale/locale.properties') }}"
>
<!-- This snippet is used in production (included from viewer.html) -->
<link
rel=
"resource"
type=
"application/l10n"
href=
"{{ url_for('static', filename='locale/locale.properties') }}"
>
<script
src=
"{{ url_for('static', filename='js/libs/pdf.js') }}"
></script>
<script
type=
"text/javascript"
>
window
.
addEventListener
(
'
loa
d'
,
function
()
{
window
.
addEventListener
(
'
webviewerloade
d'
,
function
()
{
PDFViewerApplicationOptions
.
set
(
'sidebarViewOnLoad'
,
0
);
PDFViewerApplicationOptions
.
set
(
'imageResourcesPath'
,
"{{ url_for('static', filename='css/images/') }}"
);
PDFViewerApplicationOptions
.
set
(
'workerSrc'
,
"{{ url_for('static', filename='js/libs/pdf.worker.js') }}"
);
PDFViewerApplicationOptions
.
set
(
'defaultUrl'
,
"{{ url_for('web.serve_book', book_id=pdffile, book_format='pdf') }}"
)
});
</script>
<script
src=
"{{ url_for('static', filename='js/libs/pdf.js') }}"
></script>
<script
src=
"{{ url_for('static', filename='js/libs/viewer.js') }}"
></script>
<script
src=
"{{ url_for('static', filename='js/libs/viewer.js') }}"
></script>
</head>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment