Compare commits

..

No commits in common. "master" and "v0.0.9" have entirely different histories.

2 changed files with 4 additions and 8 deletions

View File

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

View File

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