Remove operational hours
This commit is contained in:
parent
3c72a20878
commit
425ff34ea0
@ -393,17 +393,6 @@ async function runner() {
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if current time is between 11pm and 9am UTC (4pm - 2am PST)
|
||||
let now = new Date();
|
||||
let currentHourUTC = now.getUTCHours();
|
||||
if (currentHourUTC >= 23 || currentHourUTC < 9) {
|
||||
// Continue running the code
|
||||
} else {
|
||||
await chrome.storage.local.set({ "ctx_statusMsg": "not operational hours" });
|
||||
isRunning = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (isFoundAppointment) {
|
||||
// don't do anything if appointment is found and manual booking is required
|
||||
if (isAppointmentPage()) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user