make channel switching async
This commit is contained in:
parent
927dc41014
commit
232a2ece09
@ -308,7 +308,7 @@ async function loadChannels() {
|
||||
channelp.classList.add("channel")
|
||||
let textnode = document.createTextNode(channelname)
|
||||
channelp.appendChild(textnode)
|
||||
channelp.addEventListener("click",function(){
|
||||
channelp.addEventListener("click",async function(){
|
||||
currentChannel = channelname
|
||||
socket.send(JSON.stringify({"id":"switchChannel","data":channelname}))
|
||||
main()
|
||||
|
Loading…
x
Reference in New Issue
Block a user