diff options
Diffstat (limited to 'js/workersrc.js')
-rw-r--r-- | js/workersrc.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/workersrc.js b/js/workersrc.js index 6c7590f..20e64e9 100644 --- a/js/workersrc.js +++ b/js/workersrc.js @@ -31,6 +31,7 @@ function initializeCustomPDFViewerApplication() { PDFJS.openExternalLinksInNewWindow = true; PDFJS.isEvalSupported = false; PDFJS.workerSrc = document.getElementsByTagName('head')[0].getAttribute('data-workersrc'); + PDFJS.cMapUrl = document.getElementsByTagName('head')[0].getAttribute('data-cmapurl'); // The download has to be forced to use the URL of the file; by default // "PDFViewerApplication.download" uses a blob, but this causes a CSP error |