forked from MarseyWorld/MarseyWorld
fix `just now` timestamp
parent
42bfe60b89
commit
a29655e0ba
|
@ -3,7 +3,9 @@ const socket = io()
|
|||
socket.on('insert_reply', function(data) {
|
||||
const replies = document.getElementById(`replies-of-c_${data[0]}`)
|
||||
if (replies) {
|
||||
replies.insertAdjacentHTML('beforeend', data[1]);
|
||||
const html = data[1].replace(/data-nonce=".*?"/g, `data-nonce="${nonce}"`);
|
||||
|
||||
replies.insertAdjacentHTML('beforeend', html);
|
||||
|
||||
register_new_elements(replies.lastElementChild);
|
||||
bs_trigger(replies.lastElementChild);
|
||||
|
|
Loading…
Reference in New Issue