Spaces:
Paused
Paused
Update static/index.html
Browse files- static/index.html +1 -2
static/index.html
CHANGED
|
@@ -11,8 +11,7 @@
|
|
| 11 |
xhr.onreadystatechange = function() {
|
| 12 |
if (xhr.readyState == 4 && xhr.status == 200) {
|
| 13 |
var resultImage = document.getElementById("resultImage");
|
| 14 |
-
|
| 15 |
-
resultImage.src = imageSrc;
|
| 16 |
}
|
| 17 |
};
|
| 18 |
|
|
|
|
| 11 |
xhr.onreadystatechange = function() {
|
| 12 |
if (xhr.readyState == 4 && xhr.status == 200) {
|
| 13 |
var resultImage = document.getElementById("resultImage");
|
| 14 |
+
resultImage.src = xhr.responseText; // Set base64 string directly as src
|
|
|
|
| 15 |
}
|
| 16 |
};
|
| 17 |
|