Ashrafb commited on
Commit
c892ba0
·
verified ·
1 Parent(s): 2d7dc6a

Update static/index.html

Browse files
Files changed (1) hide show
  1. 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
- var imageSrc = "data:image/jpeg;base64," + xhr.responseText;
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