diff options
| author | Omar Roth <omarroth@hotmail.com> | 2019-01-24 00:01:56 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2019-01-24 00:01:56 -0600 |
| commit | 1a9057a175bbf02c6e8c562693f0b12d656923f2 (patch) | |
| tree | 05401e5fb10e76fb81aa273441ecc821e867d7a0 /assets/js | |
| parent | 0fcfb7b82bf30377e09f61e7dca45e030fc0150a (diff) | |
| download | invidious-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.js | 3 |
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 = ""; |
