Skip to content

Commit

Permalink
typo for render get
Browse files Browse the repository at this point in the history
  • Loading branch information
urluur committed Aug 26, 2024
1 parent ad5c02d commit aa7e97a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions public/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ function getDepartures() {
.then(data => {
updateSite(data);
})
.catch(() => { // looks like we are on render
.catch(error => {
console.log(error);
console.log("Looks like we are on render");
axios.get('https://arriva-scraper.onrender.com/scrape?departure=' + departure + '&destination=' + arrival)
.then(response => response.json())
.then(response => response.data)
.then(data => {
updateSite(data);
})
Expand Down

0 comments on commit aa7e97a

Please sign in to comment.