diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index 5b1e6a237..d3322452e 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -190,7 +190,7 @@ socket.on('typing', function (users){ function del(t) { t.parentElement.parentElement.parentElement.parentElement.parentElement.remove() - const text = t.previousElementSibling.previousElementSibling.innerHTML + const text = t.previousElementSibling.previousElementSibling.previousElementSibling.innerHTML console.log(text) socket.emit('delete', text); }