Skip to content

Commit

Permalink
start using next.js api for fetching feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
georg-stone committed Oct 2, 2024
1 parent 82c8bef commit 6a8f3ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions public/js/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ function fetchFeed(url) {
JSON.parse(localStorage.getItem(url)).expire < Date.now()
) {
const response = await fetch(
"https://us-central1-awesomerssfeedreader.cloudfunctions.net/getFeed?url=" +
url
"/api/fetchFeed?url=" + encodeURIComponent(url)
);
responseText = await response.text();
if (!response.ok || !responseText.startsWith("<?xml")) {
Expand Down

0 comments on commit 6a8f3ae

Please sign in to comment.