This commit is contained in:
Infi
2025-02-03 21:59:44 +01:00
parent 5a78877abf
commit 1c306c2219
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -57,6 +57,9 @@
this.elements.inputForm.addEventListener('submit', async (event) => {
event.preventDefault();
const message = this.elements.chatInput.value;
if (message.length > 500) {
return;
}
const rawResponse = await fetch('/send', {
method: 'POST',
+1 -1
View File
@@ -30,7 +30,7 @@
</div>
<div class="input-container">
<input type="text" id="chat-input" autocomplete="off" placeholder="Message" enterkeyhint="send">
<input type="text" id="chat-input" autocomplete="off" placeholder="Message" enterkeyhint="send" maxlength="500">
<div id="channel-hint"></div>
</div>