diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-12-17 17:13:52 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-12-17 17:13:52 +0300 |
commit | cff25a359c032224945ae140b689499db482c368 (patch) | |
tree | 770ea5a07e87638540637970ec1011dd404ac0dc /js/viewer.js | |
parent | 503791668bfd13b1f0713694919d745631718a9c (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-x | js/viewer.js | 2 |
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); } |