DmitrMakeev commited on
Commit
acabb34
1 Parent(s): f381854

Update se_mes_im2.html

Browse files
Files changed (1) hide show
  1. se_mes_im2.html +3 -3
se_mes_im2.html CHANGED
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html>
2
  <html lang="en">
3
  <head>
4
  <meta charset="UTF-8">
@@ -31,8 +31,8 @@
31
  .then(data => {
32
  document.getElementById('message').innerText = data;
33
  var image = document.getElementById("cameraImage");
34
- var newFilename = data.split('saved to ')[1].split('\\').pop().split('/').pop();
35
- image.src = "/image/" + newFilename + "?" + new Date().getTime();
36
  })
37
  .catch(error => {
38
  document.getElementById('message').innerText = 'Error: ' + error.message;
 
1
+ <!DOCTYPE html>
2
  <html lang="en">
3
  <head>
4
  <meta charset="UTF-8">
 
31
  .then(data => {
32
  document.getElementById('message').innerText = data;
33
  var image = document.getElementById("cameraImage");
34
+ var fullUrl = data.split('saved to ')[1];
35
+ image.src = fullUrl + "?" + new Date().getTime();
36
  })
37
  .catch(error => {
38
  document.getElementById('message').innerText = 'Error: ' + error.message;