diff --git a/frontend/frontend.js b/frontend/frontend.js index d97bb2d..168440e 100644 --- a/frontend/frontend.js +++ b/frontend/frontend.js @@ -1,4 +1,4 @@ -$('#update').click(updateData()) +$('#update').click(updateData; function updateData () { const url = 'http://' + window.location.hostname + ':5000/data'; $.get(url, function (data, status) {