disable add to calendar button

This commit is contained in:
Dobromir Popov
2024-03-13 12:23:22 +02:00
parent dedd73a6ef
commit 1fb9bae130
3 changed files with 23 additions and 5 deletions

View File

@ -474,7 +474,24 @@ createEvent = async (event) => {
}
};
SaveEventsInGoogleCalendar = async function SaveEventsInGoogleCalendar(events) {
// Load client secrets from a local file.
try {
const content = await fs.readFile(CREDENTIALS_PATH);
// Authorize a client with credentials, then call the Google Calendar API.
authorize(JSON.parse(content), createEvent);
} catch (err) {
console.log("Error loading client secret file:", err);
}
};
exports.GenerateICS = GenerateICS;
exports.createEvent = createEvent;
exports.SaveEventsInGoogleCalendar = SaveEventsInGoogleCalendar;
createEvent();
//createEvent();