Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-denev committed Jun 11, 2023
1 parent 1ebdd41 commit effb784
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions front-end/planes/render/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ tSvgText = () => document.createElementNS('http://www.w3.org/2000/svg', 'text');
fetch(`http://127.0.0.1:8080/mapData/${new URLSearchParams(window.location.search).get("id")}`)
.then(response => response.json())
.then(data => {
console.log(data);
document.getElementsByTagName("dialog")[0].close();
render(data);
document.title = `UKTC Airlines ✈ ${data.airplane.name}`;
Expand Down
4 changes: 1 addition & 3 deletions seat generator/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ fetch('inputSeats.svg')
columnCounter += 1;
});

fetch('inputSeats.svg')
fetch('inputPlane.svg')
.then(response => response.text())
.then(planeData => {

Expand Down Expand Up @@ -112,7 +112,5 @@ async function thePost(ip, self, seats, planeSvg, planeModel){
"planeName": planeModel
})
});
/*.then(response => response.json())
.then(json => console.log(json));*/
}

0 comments on commit effb784

Please sign in to comment.