Acusis/chat.js

10 lines
234 B
JavaScript
Raw Normal View History

2021-01-10 22:50:11 +00:00
chatArr=[]
function chat(message, peer){
chatArr.push(peer+": "+message)
chathtml = ""
chatArr.forEach(element => {
chathtml=chathtml+element+"</br>"
})
document.getElementById("chat").innerHTML = chathtml
}