Spaces:
Sleeping
Sleeping
Update templates/app.html
Browse files- templates/app.html +4 -2
templates/app.html
CHANGED
|
@@ -64,8 +64,10 @@
|
|
| 64 |
if (!response.ok) {
|
| 65 |
throw new Error("Response did not return ok");
|
| 66 |
}
|
| 67 |
-
|
| 68 |
-
|
|
|
|
|
|
|
| 69 |
})
|
| 70 |
.catch(error => {
|
| 71 |
console.error("Error - ", error.message);
|
|
|
|
| 64 |
if (!response.ok) {
|
| 65 |
throw new Error("Response did not return ok");
|
| 66 |
}
|
| 67 |
+
return response.json();
|
| 68 |
+
})
|
| 69 |
+
.then((response) => {
|
| 70 |
+
addMsg2View(response);
|
| 71 |
})
|
| 72 |
.catch(error => {
|
| 73 |
console.error("Error - ", error.message);
|