fix serverURL

This commit is contained in:
Yaman Qalieh 2018-01-20 23:07:54 -05:00
parent 92b1d6d02f
commit 5818b90a60

View File

@ -1,5 +1,5 @@
var navSelect = "home";
var serverURL = "http://localhost:5000";
var serverURL = window.location.href;
var data;
var navi = [ // Array containing navigation items in form [Font-Awesome class name, Display Text, Onclick function].
@ -55,7 +55,7 @@ function updateNav(op) {
function getData() {
$.ajax({
url: serverURL + '/server',
url: serverURL + 'server',
type: 'GET'
})
.then(