Update static/index.html
Browse files- static/index.html +1 -1
static/index.html
CHANGED
@@ -398,7 +398,7 @@ input[type="number"]#best_max_flavors:focus {
|
|
398 |
|
399 |
if (response.ok) {
|
400 |
const resultContainer = document.getElementById('resultContainer');
|
401 |
-
const data = await response.
|
402 |
resultContainer.innerHTML = '<h2></h2>';
|
403 |
resultContainer.innerHTML += `<p>${data.caption}</p>`; // Display caption from JSON
|
404 |
} else {
|
|
|
398 |
|
399 |
if (response.ok) {
|
400 |
const resultContainer = document.getElementById('resultContainer');
|
401 |
+
const data = await response.json(); // Get response as text
|
402 |
resultContainer.innerHTML = '<h2></h2>';
|
403 |
resultContainer.innerHTML += `<p>${data.caption}</p>`; // Display caption from JSON
|
404 |
} else {
|