Tried a fix that didn't work in base.
This commit is contained in:
@@ -104,11 +104,12 @@
|
|||||||
|
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
const result = await response.json();
|
const result = await response.json();
|
||||||
let msg = 'Message sent!';
|
let msg = 'Message sent successfully!';
|
||||||
if (result.warning) msg += ` ${result.warning}`;
|
if (result.warning) {
|
||||||
status.textContent = msg;
|
msg += ' ' + result.warning;
|
||||||
|
}
|
||||||
status.className = 'alert alert-success';
|
status.className = 'alert alert-success';
|
||||||
status.textContent = 'Message sent successfully!';
|
status.textContent = msg;
|
||||||
status.style.display = 'block';
|
status.style.display = 'block';
|
||||||
composeForm.reset();
|
composeForm.reset();
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user