1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-27 17:00:52 +01:00

Update links

This commit is contained in:
Nayam Amarshe 2023-11-26 13:35:57 +05:30
parent 6835c42d1f
commit 192d23b591
2 changed files with 2 additions and 1 deletions

View File

@ -219,12 +219,13 @@ const Home = () => {
// FETCH NEWS // FETCH NEWS
useEffect(() => { useEffect(() => {
fetch("/news.md") fetch("https://raw.githubusercontent.com/upscayl/upscayl/main/news.md")
.then((res) => { .then((res) => {
return res.blob(); return res.blob();
}) })
.then(async (data) => { .then(async (data) => {
const newsData = await data.text(); const newsData = await data.text();
if (!newsData) return;
const markdownData = matter(newsData); const markdownData = matter(newsData);
console.log("🚀 => file: index.tsx:229 => markdownData:", markdownData); console.log("🚀 => file: index.tsx:229 => markdownData:", markdownData);
console.log("🚀 => file: index.tsx:229 => news:", news); console.log("🚀 => file: index.tsx:229 => news:", news);