Merge remote-tracking branch 'refs/remotes/origin/master'

This commit is contained in:
leca 2025-02-07 00:16:20 +03:00
commit ac17b5906e
1 changed files with 2 additions and 2 deletions

View File

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