- Fix #141
This commit is contained in:
@@ -57,6 +57,9 @@
|
|||||||
this.elements.inputForm.addEventListener('submit', async (event) => {
|
this.elements.inputForm.addEventListener('submit', async (event) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
const message = this.elements.chatInput.value;
|
const message = this.elements.chatInput.value;
|
||||||
|
if (message.length > 500) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const rawResponse = await fetch('/send', {
|
const rawResponse = await fetch('/send', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input-container">
|
<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 id="channel-hint"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user