summaryrefslogtreecommitdiffstats
path: root/assets/js/watch.js
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2021-10-11 23:55:09 +0200
committerSamantaz Fox <coding@samantaz.fr>2021-10-11 23:55:09 +0200
commit39c27f0c66b82f04a190a0d8dc4e5a7023f066cc (patch)
treeb469da22b04053958cfd6e565a3774c3c848d758 /assets/js/watch.js
parente3054ccdd2a4ecdd071ddae5e264fb1b64e9be6a (diff)
parent678b10dbcfc71fd9001915892586de8c62357976 (diff)
downloadinvidious-39c27f0c66b82f04a190a0d8dc4e5a7023f066cc.tar.gz
invidious-39c27f0c66b82f04a190a0d8dc4e5a7023f066cc.tar.bz2
invidious-39c27f0c66b82f04a190a0d8dc4e5a7023f066cc.zip
Merge pull request #2257 from diogorac/fix-only-second-vid
Diffstat (limited to 'assets/js/watch.js')
-rw-r--r--assets/js/watch.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/assets/js/watch.js b/assets/js/watch.js
index 3909edd4..1579abf4 100644
--- a/assets/js/watch.js
+++ b/assets/js/watch.js
@@ -149,6 +149,8 @@ function get_playlist(plid, retries) {
if (xhr.readyState == 4) {
if (xhr.status == 200) {
playlist.innerHTML = xhr.response.playlistHtml;
+ var nextVideo = document.getElementById(xhr.response.nextVideo);
+ nextVideo.parentNode.parentNode.scrollTop = nextVideo.offsetTop;
if (xhr.response.nextVideo) {
player.on('ended', function () {