Skip to content

Commit f58e37a

Browse files
committed
fix ownCloud specific loading of the pdf document
1 parent 10e19f2 commit f58e37a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

3rdparty/pdfjs/viewer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5146,7 +5146,8 @@ function webViewerLoad(evt) {
51465146

51475147

51485148
if (file) {
5149-
PDFView.open(file, 0);
5149+
// owncould customization to load file from files app
5150+
PDFView.open(OC.linkTo('files', 'ajax/download.php')+"?files="+encodeURIComponent(window.file)+"&dir="+encodeURIComponent(window.dir), 1.0);
51505151
}
51515152

51525153
}

0 commit comments

Comments
 (0)