diff --git a/js/schedules.js b/js/schedules.js index 9aa3b79..96989fd 100644 --- a/js/schedules.js +++ b/js/schedules.js @@ -141,7 +141,7 @@ function retrieveSchedule(airport, state) { var xhr = new XMLHttpRequest(); - xhr.open("POST", "http://127.0.0.1:5000/cmd", true); + xhr.open("POST", "http://"+window.location.hostname+":5000/cmd", true); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) {