mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Comments: Don't break JavaScript when loading more
This commit is contained in:
parent
545a5937d8
commit
45cc835694
1 changed files with 1 additions and 1 deletions
|
@ -282,7 +282,7 @@ function get_youtube_replies(target, load_more, load_replies) {
|
||||||
if (load_more) {
|
if (load_more) {
|
||||||
body = body.parentNode.parentNode;
|
body = body.parentNode.parentNode;
|
||||||
body.removeChild(body.lastElementChild);
|
body.removeChild(body.lastElementChild);
|
||||||
body.innerHTML += response.contentHtml;
|
body.insertAdjacentHTML('beforeend', response.contentHtml);
|
||||||
} else {
|
} else {
|
||||||
body.removeChild(body.lastElementChild);
|
body.removeChild(body.lastElementChild);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue