fix images

pull/225/head
Aevann 2024-03-08 07:35:37 +02:00
parent a29655e0ba
commit 0529a3d1bd
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ const socket = io()
socket.on('insert_reply', function(data) {
const replies = document.getElementById(`replies-of-c_${data[0]}`)
if (replies) {
const html = data[1].replace(/data-nonce=".*?"/g, `data-nonce="${nonce}"`);
const html = data[1].replace(/data-src/g, 'src').replace(/data-nonce=".*?"/g, `data-nonce="${nonce}"`);
replies.insertAdjacentHTML('beforeend', html);