Comments: Don't break JavaScript when loading more

This commit is contained in:
Chunky programmer 2023-06-07 17:06:58 -04:00
parent 545a5937d8
commit 45cc835694

View File

@ -282,7 +282,7 @@ function get_youtube_replies(target, load_more, load_replies) {
if (load_more) {
body = body.parentNode.parentNode;
body.removeChild(body.lastElementChild);
body.innerHTML += response.contentHtml;
body.insertAdjacentHTML('beforeend', response.contentHtml);
} else {
body.removeChild(body.lastElementChild);