Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_pdfviewer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'js/workersrc.js')
-rw-r--r--js/workersrc.js1
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