From 276c99182626b0350b33b58bd26e2140cdb894e3 Mon Sep 17 00:00:00 2001 From: stale Date: Sat, 19 Nov 2022 02:12:46 -0300 Subject: the chat is dead --- assets/client.js | 8 -------- 1 file changed, 8 deletions(-) (limited to 'assets/client.js') diff --git a/assets/client.js b/assets/client.js index e1218ba..1150b8f 100644 --- a/assets/client.js +++ b/assets/client.js @@ -125,7 +125,6 @@ function connect() { room.bconf.h = Number(dims[1]); room.bconf.mine_ratio = fields[5]; createCursor(player.uid, name, room.identity.clr); - setup_chat(name, room.name); } break; case "win": { elem.info.innerHTML = "You win! Click here to play again."; @@ -331,10 +330,3 @@ volChanged(); }, 30000); })(); -function setup_chat(name, room_name) { - let chat_iframe = document.createElement("iframe"); - // FIXME the url should come from the server - chat_iframe.setAttribute("src", "/gamja?channels=" + encodeURIComponent(`#mines-${room_name}`) + "&nick=" + encodeURIComponent(name)); - elem.chat_div.appendChild(chat_iframe); -} - -- cgit v1.2.3