mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
scroll the nextVideo into the top
This commit is contained in:
parent
0a9e19646a
commit
f13fb80b42
1 changed files with 2 additions and 0 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue