summaryrefslogtreecommitdiffstats
path: root/assets/js/watch.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/watch.js')
-rw-r--r--assets/js/watch.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/assets/js/watch.js b/assets/js/watch.js
index 3988234a..81fa6288 100644
--- a/assets/js/watch.js
+++ b/assets/js/watch.js
@@ -51,7 +51,8 @@ function hide_youtube_replies(target) {
target.setAttribute("onclick", "show_youtube_replies(this)");
}
-function download_video(title) {
+function download_video(target) {
+ var title = target.getAttribute("data-title");
var children = document.getElementById("download_widget").children;
var progress = document.getElementById("download-progress");
var url = "";