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