Compare commits

...

3 Commits

Author SHA1 Message Date
3478fd5a6e Bump version 2024-08-01 15:53:22 -07:00
8697c717b8 Send notification on appointment update 2024-08-01 14:06:01 -07:00
c31ab1eb64 Use last timeslot in the selected day 2024-08-01 13:29:41 -07:00
2 changed files with 8 additions and 4 deletions

View File

@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "not-a-rescheduler",
"version": "0.0.9",
"version": "0.0.10",
"permissions": [ "storage", "tabs", "activeTab", "notifications", "declarativeContent" ],
"content_scripts": [
{

View File

@ -501,8 +501,12 @@ async function runner() {
}
if (apptDate != ctx.currentAppt.date || apptConsulate != ctx.currentAppt.consulate) {
console.log(`New appointment date: ${apptDate} at ${apptConsulate},
old: ${ctx.currentAppt.consulate} at ${ctx.currentAppt.date}`);
msg = `New appointment date: ${apptDate} at ${apptConsulate}`
if (ctx.currentAppt.date != null) {
sendNotification(msg);
}
msg += `, was: ${ctx.currentAppt.consulate} at ${ctx.currentAppt.date}`
console.log(msg);
ctx.currentAppt = { consulate: apptConsulate, date: apptDate };
await chrome.storage.local.set({ "ctx_currentAppt": ctx.currentAppt });
}
@ -678,7 +682,7 @@ async function runner() {
continue;
}
console.log(`Available timeslots in ${c} at ${chosenDate}: ${availTimes}`);
let chosenTime = availTimes[0];
let chosenTime = availTimes[availTimes.length - 1];
// fill timeslot in reschedule form
await delay(PAGE_WAIT_TIME);