From 054063fd1280f86b8d97cd5e11cacc8c5252a580 Mon Sep 17 00:00:00 2001
From: ManInDark <61268856+ManInDark@users.noreply.github.com>
Date: Sat, 2 Nov 2024 00:12:34 +0100
Subject: [PATCH] added meta tags
---
index.html | 8 +++++++-
src/CalendarApi.tsx | 2 +-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/index.html b/index.html
index fa9e599..8fda427 100644
--- a/index.html
+++ b/index.html
@@ -1,9 +1,15 @@
-
+
Holiday List
+
+
+
+
+
+
diff --git a/src/CalendarApi.tsx b/src/CalendarApi.tsx
index e4c1332..0828125 100644
--- a/src/CalendarApi.tsx
+++ b/src/CalendarApi.tsx
@@ -4,7 +4,7 @@ import { useEffect, useState } from "react";
type Holiday = { "date": string, "localName": string, "countryCode": string, "fixed": string, "global": string, "types": string[] }
async function getText(satYear: string): Promise {
- return JSON.parse(await (await fetch("https://date.nager.at/api/v3/publicholidays/" + satYear + "/DE")).text());
+ return await (await fetch("https://date.nager.at/api/v3/publicholidays/" + satYear + "/DE")).json();
}
function ListHolidays() {