Skip to content

Commit

Permalink
removed onload
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaaoBlues committed Jul 19, 2022
1 parent 23b57fb commit 4ae7356
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,7 @@ <h1>Last files/data sent :</h1>

function store_visit(endpoint_id){
var x = new XMLHttpRequest();
x.onload = function() {
var resp = JSON.parse(x.responseText);
}

x.open("GET","http://thaaoblues.pythonanywhere.com/hit/"+endpoint_id,true);
x.setRequestHeader('X-Referer', window.location.href);
x.send();
Expand Down

0 comments on commit 4ae7356

Please sign in to comment.