fixed wrong url in frontend

This commit is contained in:
d3m1g0d
2019-04-06 15:24:07 +02:00
parent 4c35d0f179
commit 2e53784002

View File

@@ -1,7 +1,7 @@
$('#update').click(updateData()) $('#update').click(updateData())
function updateData () { function updateData () {
const url = 'http:' + window.location.hostname + ':5000/data' const url = 'http://' + window.location.hostname + ':5000/data';
$.get(url, function (data, status) { $.get(url, function (data, status) {
$('#debug').text(data) $('#debug').text(data);
}) })
} }