Don't ask for address when getting dates
This commit is contained in:
@@ -244,15 +244,15 @@ async function getConsulates() {
|
||||
}
|
||||
|
||||
async function getAvailableDates(consulateId) {
|
||||
let addressUri = window.location.pathname + `/address/${consulateId}`
|
||||
fetch(addressUri, { headers: { "x-requested-with": "XMLHttpRequest" } })
|
||||
.catch(error => console.error('Error:', error));
|
||||
// let addressUri = window.location.pathname + `/address/${consulateId}`
|
||||
// fetch(addressUri, { headers: { "x-requested-with": "XMLHttpRequest" } })
|
||||
// .catch(error => console.error('Error:', error));
|
||||
|
||||
let datesUri = window.location.pathname + `/days/${consulateId}.json?appointments[expedite]=false`
|
||||
let dates = fetch(datesUri, { headers: {
|
||||
"x-requested-with": "XMLHttpRequest",
|
||||
"accept": "application/json, text/javascript, */*; q=0.01",
|
||||
// "cache-control": "no-cache",
|
||||
"cache-control": "no-cache",
|
||||
}})
|
||||
.catch(async e => {
|
||||
await handleHttpError(e);
|
||||
|
||||
Reference in New Issue
Block a user