Uncomment autobook

This commit is contained in:
2024-04-17 10:05:56 -07:00
parent 671f510ad6
commit 59eb5b14f9
2 changed files with 10 additions and 10 deletions

View File

@@ -197,17 +197,17 @@
let $latestAscTime = $latestAscTimes.available_times[0];
// document.getElementById("appointments_asc_appointment_time").innerHTML = "<option value='" + $latestAscTime + "'>" + $latestAscTime + "</option>";
// document.getElementById("appointments_asc_appointment_time").value = $latestAscTime;
document.getElementById("appointments_asc_appointment_time").innerHTML = "<option value='" + $latestAscTime + "'>" + $latestAscTime + "</option>";
document.getElementById("appointments_asc_appointment_time").value = $latestAscTime;
}
// document.getElementById("appointments_submit").removeAttribute("disabled");
// document.getElementById("appointments_submit").click();
document.getElementById("appointments_submit").removeAttribute("disabled");
document.getElementById("appointments_submit").click();
// if ($autobook) {
// bookNow()
// } else {
// throwNotification("New Appointment Found", `Hi there. The extension found a new appointment on ${latestDate}. Book now before it's gone!`)
// }
if ($autobook) {
bookNow()
} else {
throwNotification("New Appointment Found", `Hi there. The extension found a new appointment on ${latestDate}. Book now before it's gone!`)
}
}
// async function sync(force) {