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:
authorJulius Härtl <jus@bitgrid.net>2020-06-04 15:04:14 +0300
committerGitHub <noreply@github.com>2020-06-04 15:04:14 +0300
commit426fa32639ef5b439ac2b824c5da4059dc694c5a (patch)
treea56e5d8de7bbdab2e66b90621f604a10c877c542
parent5c6dde5d433023b9d6a3cefc5f2c79aafeb35c14 (diff)
parentbfc39f2b6e84d7521d04cd69c8e309e1bd4301a6 (diff)
[stable18] Allow downloads in sandboxed iframe
-rw-r--r--js/previewplugin.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/previewplugin.js b/js/previewplugin.js
index 67835fe..dec4712 100644
--- a/js/previewplugin.js
+++ b/js/previewplugin.js
@@ -54,7 +54,7 @@ var isSecureViewerAvailable = function () {
var shown = true;
var $iframe;
var viewer = OC.generateUrl('/apps/files_pdfviewer/?file={file}', {file: downloadUrl});
- $iframe = $('<iframe id="pdframe" style="width:100%;height:100%;display:block;position:absolute;top:0;z-index:1041;left:0;" src="'+viewer+param+'" sandbox="allow-scripts allow-same-origin allow-popups allow-modals allow-top-navigation" allowfullscreen="true"/>');
+ $iframe = $('<iframe id="pdframe" style="width:100%;height:100%;display:block;position:absolute;top:0;z-index:1041;left:0;" src="'+viewer+param+'" sandbox="allow-scripts allow-same-origin allow-popups allow-modals allow-top-navigation allow-downloads" allowfullscreen="true"/>');
if(isFileList === true) {
FileList.setViewerMode(true);