Disable autobook after successful reschedule
This commit is contained in:
parent
32cf1a5acf
commit
33f11a6528
@ -502,6 +502,12 @@ async function runner() {
|
|||||||
config.currentAppt = { consulate: null, date: null};
|
config.currentAppt = { consulate: null, date: null};
|
||||||
await chrome.storage.local.set({"__currentAppt": config.currentAppt});
|
await chrome.storage.local.set({"__currentAppt": config.currentAppt});
|
||||||
console.log('Rescheduled successfully');
|
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, "");
|
window.location = window.location.pathname.replace(/schedule.*/g, "");
|
||||||
await delay(PAGE_WAIT_TIME);
|
await delay(PAGE_WAIT_TIME);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user