summaryrefslogtreecommitdiffstats
path: root/assets/js
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2019-01-24 00:01:56 -0600
committerOmar Roth <omarroth@hotmail.com>2019-01-24 00:01:56 -0600
commit1a9057a175bbf02c6e8c562693f0b12d656923f2 (patch)
tree05401e5fb10e76fb81aa273441ecc821e867d7a0 /assets/js
parent0fcfb7b82bf30377e09f61e7dca45e030fc0150a (diff)
downloadinvidious-1a9057a175bbf02c6e8c562693f0b12d656923f2.tar.gz
invidious-1a9057a175bbf02c6e8c562693f0b12d656923f2.tar.bz2
invidious-1a9057a175bbf02c6e8c562693f0b12d656923f2.zip
Add fix to download widget for titles with unescaped characters
Diffstat (limited to 'assets/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 = "";