diff --git a/src/components/LiveStatus.svelte b/src/components/LiveStatus.svelte index b3b301e..e6fe06a 100644 --- a/src/components/LiveStatus.svelte +++ b/src/components/LiveStatus.svelte @@ -12,7 +12,7 @@ let sites = []; if (!apiBaseUrl) apiBaseUrl = "https://api.github.com"; const userContentBaseUrl = apiBaseUrl.includes("api.github.com") - ? `https://github.com/raw` + ? `${config.githubUserContentBaseUrl || "https://github.com/raw"}` : apiBaseUrl; const graphsBaseUrl = `${userContentBaseUrl}/${owner}/${repo}/master/graphs`; let form = null; diff --git a/src/components/Summary.svelte b/src/components/Summary.svelte index 45aa8ca..2d1b797 100644 --- a/src/components/Summary.svelte +++ b/src/components/Summary.svelte @@ -9,7 +9,7 @@ let { apiBaseUrl } = config["status-website"] || {}; if (!apiBaseUrl) apiBaseUrl = "https://api.github.com"; const userContentBaseUrl = apiBaseUrl.includes("api.github.com") - ? `https://github.com/raw` + ? `${config.githubUserContentBaseUrl || "https://github.com/raw"}` : apiBaseUrl; const owner = config.owner; const repo = config.repo;