mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-25 09:39:52 +05:30
Comments: Don't break JavaScript when loading more (#3870)
This commit is contained in:
commit
68c26563fc
@ -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 New Issue
Block a user