mirror of
https://github.com/janeczku/calibre-web.git
synced 2025-01-08 04:04:09 +02:00
Renamed pdf reader javascript files (#3277)
This commit is contained in:
parent
0ef9e46133
commit
4512ab4524
@ -16667,7 +16667,7 @@ const PDFWorkerUtil = {
|
||||
{
|
||||
if (isNodeJS) {
|
||||
PDFWorkerUtil.isWorkerDisabled = true;
|
||||
GlobalWorkerOptions.workerSrc ||= "./pdf.worker.mjs";
|
||||
GlobalWorkerOptions.workerSrc ||= "./pdf.worker.js";
|
||||
}
|
||||
PDFWorkerUtil.isSameOrigin = function (baseUrl, otherUrl) {
|
||||
let base;
|
@ -828,7 +828,7 @@ const defaultOptions = {
|
||||
kind: OptionKind.WORKER
|
||||
},
|
||||
workerSrc: {
|
||||
value: "../build/pdf.worker.mjs",
|
||||
value: "../build/pdf.worker.js",
|
||||
kind: OptionKind.WORKER
|
||||
}
|
||||
};
|
@ -35,7 +35,7 @@ See https://github.com/adobe-type-tools/cmap-resources
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/libs/viewer.css') }}">
|
||||
<!-- This snippet is used in production (included from viewer.html) -->
|
||||
<link rel="resource" type="application/l10n" href="{{ url_for('static', filename='locale/locale.json') }}">
|
||||
<script src="{{ url_for('static', filename='js/libs/pdf.mjs') }}" type="module"></script>
|
||||
<script src="{{ url_for('static', filename='js/libs/pdf.js') }}" type="module"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.addEventListener('webviewerloaded', function() {
|
||||
@ -46,12 +46,12 @@ See https://github.com/adobe-type-tools/cmap-resources
|
||||
PDFViewerApplicationOptions.set('cMapUrl', "{{ url_for('static', filename='cmaps/') }}");
|
||||
PDFViewerApplicationOptions.set('sidebarViewOnLoad', 0);
|
||||
PDFViewerApplicationOptions.set('imageResourcesPath', "{{ url_for('static', filename='css/images/') }}");
|
||||
PDFViewerApplicationOptions.set('workerSrc', "{{ url_for('static', filename='js/libs/pdf.worker.mjs') }}");
|
||||
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/viewer.mjs') }}" type="module">></script>
|
||||
<script src="{{ url_for('static', filename='js/libs/viewer.js') }}" type="module">></script>
|
||||
|
||||
</head>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user