diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-06-04 15:04:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-04 15:04:11 +0300 |
commit | 19142fa56e5cdb3d8be5116dfa49e6e63e930cec (patch) | |
tree | 0e8054444d374fb603ccd89fb77627f132a19b9c | |
parent | 8f80d1a239ed43c14cff5c32526e70fe118f9c20 (diff) | |
parent | 3d5bcb1e721dd90ad11ec54d73d2222941a6137f (diff) |
Merge pull request #189 from nextcloud/backport/186/stable17v17.0.9RC2v17.0.9RC1v17.0.9v17.0.8RC1v17.0.8v17.0.10RC1v17.0.10stable17
[stable17] Allow downloads in sandboxed iframe
-rw-r--r-- | js/previewplugin.js | 2 |
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); |