diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-06-04 15:04:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-04 15:04:20 +0300 |
commit | 2cc1f5b30f733c1f033b43911fb08a9928635ebb (patch) | |
tree | f18131fbab0bc3025654b4dbe82844ae3547f109 | |
parent | e877ebb10547a1ff59f39b15fcf4ab1eff18eb92 (diff) | |
parent | 540ca4db1857a1580d5cfc121314014ff9858eb3 (diff) |
Merge pull request #187 from nextcloud/backport/186/stable19v19.0.9RC1v19.0.9v19.0.8RC1v19.0.8v19.0.7RC1v19.0.7v19.0.6RC2v19.0.6v19.0.5RC2v19.0.5RC1v19.0.5v19.0.4RC2v19.0.40RC1v19.0.4v19.0.3RC1v19.0.3v19.0.2RC2v19.0.2RC1v19.0.2v19.0.1RC1v19.0.13rc1v19.0.13v19.0.12v19.0.11RC1v19.0.11v19.0.10RC1v19.0.10v19.0.1stable19
[stable19] 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); |