- Fix live chat resquest
This commit is contained in:
Kum1ta
2024-08-30 16:43:24 +02:00
parent 4140a93677
commit 820715f920
6 changed files with 29 additions and 9 deletions

View File

@ -6,7 +6,7 @@
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/31 22:17:24 by edbernar #+# #+# */
/* Updated: 2024/08/26 14:48:48 by edbernar ### ########.fr */
/* Updated: 2024/08/30 15:42:51 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
@ -52,6 +52,7 @@ socket.onmessage = (event) => {
}
else
{
console.log(response);
try {
functionResponse[typeResponse.indexOf(response.type)](response.content);
} catch {