fix edge case

pull/55/head
Aevann1 2022-12-07 21:59:02 +02:00
parent cff9249572
commit 3c2880fd11
1 changed files with 1 additions and 2 deletions

View File

@ -229,8 +229,7 @@ function post_comment(fullname, wall_user_id, hide){
let comments = document.getElementById('replies-of-' + fullname);
let comment = data["comment"].replace(/data-src/g, 'src').replace(/data-cfsrc/g, 'src').replace(/style="display:none;visibility:hidden;"/g, '');
comments.innerHTML = comment + comments.innerHTML;
if (!hide) comments.scrollIntoView()
comments.insertAdjacentHTML('beforebegin', comment);
bs_trigger(comments);