Fixing localhost problems

This commit is contained in:
2022-03-29 01:02:54 -04:00
parent c26e4f42b7
commit 2361d2a43a
+1 -1
View File
@@ -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) {