|
@@ -7,8 +7,8 @@ import useHealthPolling from "../../hooks/useHealthPolling";
|
|
|
const ms = 1000 * 60 * 20;
|
|
|
const fetchOptions = { credentials: "same-origin" };
|
|
|
const apiOptions = { ms, fetchOptions };
|
|
|
-const homepage = "https://kirkleon.ddns.net/commafeed/";
|
|
|
-const unreadLookup = "https://kirkleon.ddns.net/commafeed/rest/category/entries?id=all&limit=20&offset=0&order=desc&readType=unread";
|
|
|
+const homepage = `https://${window.location.hostname}/commafeed/`;
|
|
|
+const unreadLookup = `https://${window.location.hostname}/commafeed/rest/category/entries?id=all&limit=20&offset=0&order=desc&readType=unread`;
|
|
|
|
|
|
export default () => {
|
|
|
const health = useHealthPolling(homepage, { ms });
|