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:
authorJoas Schilling <coding@schilljs.com>2017-04-18 12:37:04 +0300
committerJoas Schilling <coding@schilljs.com>2017-04-18 12:37:04 +0300
commit8b8fb82cdf2c4ca648ee30f6f18293cda81cd030 (patch)
treee588cd69bd09bcc9f1eabc7915f85abf5ea127d5
parentb267de801cf7b695c697d6dc12e064e3372c5f63 (diff)
Fix Safari pdf displayingdownstream
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--js/previewplugin.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/previewplugin.js b/js/previewplugin.js
index 2e71996..e5518b4 100644
--- a/js/previewplugin.js
+++ b/js/previewplugin.js
@@ -46,7 +46,7 @@
var self = this;
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:141;" src="'+viewer+'" sandbox="allow-scripts allow-same-origin allow-popups allow-modals" />');
+ $iframe = $('<iframe id="pdframe" style="width:100%;height:100%;display:block;position:absolute;top:0;z-index:141;" src="'+viewer+'" sandbox="allow-scripts allow-same-origin allow-popups allow-modals allow-top-navigation" />');
if(isFileList === true) {
FileList.setViewerMode(true);