Fixing localhost problems
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user