починил веб сокет
This commit is contained in:
parent
5f94ff5e29
commit
ea980b3974
1 changed files with 4 additions and 5 deletions
|
@ -49,6 +49,8 @@
|
|||
const userData = await UserCheck();
|
||||
userId = userData.id;
|
||||
|
||||
window.addEventListener('keydown', onEnterPress);
|
||||
|
||||
chats = await getAllChats()
|
||||
createNewChatButton = true
|
||||
console.log(chats, " чаты")
|
||||
|
@ -95,9 +97,6 @@
|
|||
}
|
||||
messages = messages
|
||||
|
||||
onDestroy(() => {
|
||||
close();
|
||||
});
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -564,8 +563,7 @@ let PickedName = ""
|
|||
|
||||
<!-- svelte-ignore a11y-autofocus -->
|
||||
<div class="textMsg">
|
||||
<textarea on:keydown={onEnterPress}
|
||||
autofocus placeholder="Введите сообщение" rows="{rows}" bind:value={messageText}
|
||||
<textarea autofocus placeholder="Введите сообщение" rows="{rows}" bind:value={messageText}
|
||||
on:input={onInput} bind:this={inputArea} name="msg" id="msg"></textarea>
|
||||
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||
|
@ -1187,6 +1185,7 @@ width: 100%;
|
|||
var(--gradient) border-box;
|
||||
|
||||
width: 98%;
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
#msg{
|
||||
|
|
Loading…
Add table
Reference in a new issue