diff --git a/frontend/js/client.js b/frontend/js/client.js index c2cfa98..ae55ff0 100644 --- a/frontend/js/client.js +++ b/frontend/js/client.js @@ -1550,7 +1550,7 @@ function appendMessage(name, msg) { const messageClass = name === peerName ? 'sent' : 'received'; div.className = `msg ${messageClass}`; span.className = 'from'; - span.innerText = name + ' ' + time; + span.innerText = `${name} ${time}`; p.className = 'text'; p.innerText = msg; div.appendChild(span);