diff --git a/frontend/src/pages/chat/chat.html b/frontend/src/pages/chat/chat.html index 9bb3b3e..cc74986 100644 --- a/frontend/src/pages/chat/chat.html +++ b/frontend/src/pages/chat/chat.html @@ -1,6 +1,5 @@
-

Chatter Box


diff --git a/frontend/src/pages/chat/chat.ts b/frontend/src/pages/chat/chat.ts index 92c0aaa..e13c5df 100644 --- a/frontend/src/pages/chat/chat.ts +++ b/frontend/src/pages/chat/chat.ts @@ -206,7 +206,6 @@ function handleChat(_url: string, _args: RouteHandlerParams): RouteHandlerReturn socket.once('welcome', (data) => { const buddies = document.getElementById('div-buddies') as HTMLDivElement; - const chatWindow = document.getElementById('t-chatbox') as HTMLDivElement; buddies.textContent = ''; buddies.innerHTML = ''; connected(socket); @@ -223,7 +222,6 @@ function handleChat(_url: string, _args: RouteHandlerParams): RouteHandlerReturn const clearText = document.getElementById('b-clear') as HTMLButtonElement; const buddies = document.getElementById('div-buddies') as HTMLDivElement; const bquit = document.getElementById('b-quit') as HTMLDivElement; - const bnextGame = document.getElementById('b-nextGame') as HTMLDivElement; buddies.textContent = ''; buddies.innerHTML = ''; @@ -235,9 +233,6 @@ function handleChat(_url: string, _args: RouteHandlerParams): RouteHandlerReturn if (profilList) profilList.classList.add("hidden"); }); - - - const buttonMessage = document.getElementById("close-modal-message") ?? null; if (buttonMessage) @@ -249,7 +244,6 @@ function handleChat(_url: string, _args: RouteHandlerParams): RouteHandlerReturn }); - // Send button sendButton?.addEventListener("click", () => { const notify = document.getElementById("notify") ?? null; @@ -367,13 +361,6 @@ function handleChat(_url: string, _args: RouteHandlerParams): RouteHandlerReturn } }); - // Dev Game message button - bnextGame?.addEventListener("click", () => { - if (chatWindow) { - socket.emit('nextGame'); - } - }); - bquit?.addEventListener('click', () => { quitChat(socket); });