disable add to calendar button
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user