diff --git a/src/App.js b/src/App.js index cdfec73..03d6a95 100755 --- a/src/App.js +++ b/src/App.js @@ -8,11 +8,12 @@ import { DialogTitle, } from "@material-ui/core"; -import "./App.css"; import EpisodeList from "./components/EpisodeList"; import UserForm from "./components/UserForm"; import LoadingStatus from "./components/LoadingStatus"; +import "./App.css"; + const App = ({ fetching }) => { const [fetched, setFetched] = useState({}); const [onFetching, setFetching] = useState(false); @@ -22,8 +23,7 @@ const App = ({ fetching }) => { const getFeed = (event) => { setFetching((prev) => !prev); - if (event.preventDefault != null) - event.preventDefault(); + if (event.preventDefault != null) event.preventDefault(); const feed_url = event.target.elements.feed_url.value; const Parser = require("rss-parser"); const parser = new Parser({ @@ -32,7 +32,7 @@ const App = ({ fetching }) => { }, }); - const CORS_PROXY = "https://cors-anywhere.herokuapp.com/"; + const CORS_PROXY = "https://cors.bridged.cc/"; if (feed_url) { const loadRSS = async () => { @@ -101,8 +101,8 @@ const App = ({ fetching }) => { past={past} previous_feeds={[...previousFeeds]} /> - {error ? renderAlert() :
} - {!past ?Please enter an RSS feed
: } + {error ? renderAlert() : null} + {!past ?Please enter an RSS feed
: null}