Loading pdf.js manually is not necessary, bundled with viewer.
This commit is contained in:
parent
c1969140e5
commit
728b749714
3 changed files with 1 additions and 4 deletions
|
|
@ -24,8 +24,7 @@ import $ from 'jquery';
|
|||
import io from 'socket.io-client';
|
||||
import iro from '@jaames/iro';
|
||||
import paper from 'paper';
|
||||
import { pdfjsLib } from 'pdfjs-dist';
|
||||
import { PDFViewerApplication, PDFViewerApplicationOptions } from 'pdfjs-dist-viewer-min';
|
||||
import { pdfjsLib, PDFViewerApplication, PDFViewerApplicationOptions } from 'pdfjs-dist-viewer-min';
|
||||
|
||||
(function() {
|
||||
"use strict";
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ See https://github.com/adobe-type-tools/cmap-resources
|
|||
<!-- This snippet is used in production (included from viewer.html) -->
|
||||
<link rel="resource" type="application/l10n" href="<?php p($urlGenerator->linkTo('pdfdraw', '3rdparty/pdfjs/web/locale/locale.properties')) ?>?v=<?php p($version) ?>">
|
||||
|
||||
<script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" src="<?php p($urlGenerator->linkTo('pdfdraw', 'js/pdf.js')) ?>?v=<?php p($version) ?>"></script>
|
||||
<script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" src="<?php p($urlGenerator->linkTo('pdfdraw', 'js/pdf.viewer.js')) ?>?v=<?php p($version) ?>"></script>
|
||||
|
||||
<script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" src="<?php p($urlGenerator->linkTo('pdfdraw', 'js/pdfdraw.js')) ?>?v=<?php p($version) ?>"></script>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ module.exports = {
|
|||
'loader': path.join(__dirname, 'src', 'loader.js'),
|
||||
'pdfdraw': path.join(__dirname, 'src', 'pdfdraw.js'),
|
||||
'admin/backend': path.join(__dirname, 'src', 'admin', 'backend.js'),
|
||||
'pdf': path.join(__dirname, 'node_modules', 'pdfjs-dist', 'build', 'pdf.js'),
|
||||
'pdf.worker': path.join(__dirname, 'node_modules', 'pdfjs-dist', 'build', 'pdf.worker.js'),
|
||||
},
|
||||
externals: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue