Disable autobook after successful reschedule

This commit is contained in:
Maks Snegov 2024-04-24 16:33:55 -07:00
parent 32cf1a5acf
commit 33f11a6528

View File

@ -502,6 +502,12 @@ async function runner() {
config.currentAppt = { consulate: null, date: null};
await chrome.storage.local.set({"__currentAppt": config.currentAppt});
console.log('Rescheduled successfully');
// switch off autobook for all consulates after successful reschedule
for (let consulate in config.consulates) {
config.consulates[consulate].autobook = false;
}
window.location = window.location.pathname.replace(/schedule.*/g, "");
await delay(PAGE_WAIT_TIME);
}