add request size limit notifications
This commit is contained in:
parent
9c99b112d5
commit
5233b4518f
8 changed files with 26 additions and 8 deletions
|
|
@ -2900,9 +2900,12 @@ async function sendMessage(sendbutton = document.getElementById("chat-sendmessag
|
|||
}
|
||||
|
||||
if (res.status === 413) {
|
||||
throw new Error("error.body.too.large");
|
||||
throw new Error("error:body.too.large");
|
||||
}
|
||||
let text = await res.text();
|
||||
if (text.startsWith("error:")) {
|
||||
throw new Error(text);
|
||||
}
|
||||
let decText;
|
||||
try {
|
||||
decText = await decryptString(text, passwordHash);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue