Partially fixed bad send behavior.
This commit is contained in:
@@ -103,6 +103,10 @@
|
||||
});
|
||||
|
||||
if (response.ok) {
|
||||
const result = await response.json();
|
||||
let msg = 'Message sent!';
|
||||
if (result.warning) msg += ` ${result.warning}`;
|
||||
status.textContent = msg;
|
||||
status.className = 'alert alert-success';
|
||||
status.textContent = 'Message sent successfully!';
|
||||
status.style.display = 'block';
|
||||
|
||||
Reference in New Issue
Block a user