Remove operational hours

This commit is contained in:
Maks Snegov 2024-04-30 16:41:36 -07:00
parent 3c72a20878
commit 425ff34ea0

View File

@ -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()) {