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.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/workersrc.js b/js/workersrc.js
index 7e4079f..2aa186b 100644
--- a/js/workersrc.js
+++ b/js/workersrc.js
@@ -15,3 +15,7 @@ redirectIfNotDisplayedInFrame();
PDFJS.openExternalLinksInNewWindow = true;
PDFJS.isEvalSupported = false;
PDFJS.workerSrc = document.getElementsByTagName('head')[0].getAttribute('data-workersrc');
+
+PDFViewerApplication.download = function() {
+ window.open(decodeURIComponent(window.location.search.substr(6)), '_blank');
+}; \ No newline at end of file