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

Update static/index.html

Browse files
Files changed (1) hide show
  1. static/index.html +2 -1
static/index.html CHANGED
@@ -11,7 +11,8 @@
11
  xhr.onreadystatechange = function() {
12
  if (xhr.readyState == 4 && xhr.status == 200) {
13
  var resultImage = document.getElementById("resultImage");
14
- resultImage.src = "data:image/jpeg;base64," + xhr.responseText;
 
15
  }
16
  };
17
 
 
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