Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3478fd5a6e | |||
| 8697c717b8 | |||
| c31ab1eb64 |
@ -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": [
|
||||
{
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user