Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_videoplayer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-12-17 17:13:52 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-12-17 17:13:52 +0300
commitcff25a359c032224945ae140b689499db482c368 (patch)
tree770ea5a07e87638540637970ec1011dd404ac0dc /js/viewer.js
parent503791668bfd13b1f0713694919d745631718a9c (diff)
Do not get the url from the download links
If the download is hidden this url does not exist. We should just fetch generate it ourselfs. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'js/viewer.js')
-rwxr-xr-xjs/viewer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/viewer.js b/js/viewer.js
index d615ce3..f64bf39 100755
--- a/js/viewer.js
+++ b/js/viewer.js
@@ -147,7 +147,7 @@ $(document).ready(function(){
}
if($('#body-public').length && $('#imgframe').length && isSupportedMimetype) {
- var videoUrl = $('#downloadURL').val();
+ var videoUrl = window.location + '/download';
videoViewer.onViewInline($('#imgframe'), videoUrl, mimetype);
}