Specify project scope

This commit is contained in:
Marek S. Lukasiewicz
2025-01-04 20:51:41 +01:00
parent 10a64f8927
commit 98edb7a818
4 changed files with 73 additions and 33 deletions

View File

@@ -18,7 +18,6 @@ export async function queryEvents(
): Promise<any[]> {
const secrets = await readYamlPage("SECRETS");
const icsUrl = secrets.icsUrl;
// TODO: Loop over multiple sources (like CalDAV, .ics URLs) and assign calendar name based on X-WR-CALNAME
const result = await fetch(icsUrl);
const icsData = await result.text();
const calendarParsed: VCalendar = parseIcsCalendar(icsData);