diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index 53cbb8ac0..4f08b3c4a 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -146,8 +146,8 @@ socket.on('speak', function(json) { socket.on('catchup', function(json) { for (const message of json) { - console.log(json['id']) - const existing = document.getElementById(json['id']) + console.log(message['id']) + const existing = document.getElementById(message['id']) if (existing) break console.log(existing) handle_message(message)