no brain head empty

This commit is contained in:
leca 2025-02-06 13:07:42 +00:00
parent 91d6e64f18
commit 550fa0fbe4
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ $(document).ready(async () => {
const sendData = async () => { const sendData = async () => {
const jwt = getCookie("jwt"); const jwt = getCookie("jwt");
const author = await fetch(`/api/getUsername`) const author = await (await fetch(`/api/getUsername`)).text()
const content = $("#chat-input").val(); const content = $("#chat-input").val();
const message = { const message = {
@ -83,4 +83,4 @@ $(document).ready(async () => {
}); });
$("#chat-input").bind("enterKey", sendData); $("#chat-input").bind("enterKey", sendData);
}); });