Skip to content

Commit

Permalink
✨ Allow the use of other mirrors instead of raw.githubusercontent.com
Browse files Browse the repository at this point in the history
Merge pull request #444 from poikcue/master
  • Loading branch information
AnandChowdhary authored Aug 1, 2022
2 parents 16bca9f + d394f83 commit aeb6b33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/LiveStatus.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
let sites = [];
if (!apiBaseUrl) apiBaseUrl = "https://api.github.com";
const userContentBaseUrl = apiBaseUrl.includes("api.github.com")
? `https://raw.githubusercontent.com`
? `${config.githubUserContentBaseUrl || "https://raw.githubusercontent.com"}`
: apiBaseUrl;
const graphsBaseUrl = `${userContentBaseUrl}/${owner}/${repo}/master/graphs`;
let form = null;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Summary.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
let { apiBaseUrl } = config["status-website"] || {};
if (!apiBaseUrl) apiBaseUrl = "https://api.github.com";
const userContentBaseUrl = apiBaseUrl.includes("api.github.com")
? `https://raw.githubusercontent.com`
? `${config.githubUserContentBaseUrl || "https://raw.githubusercontent.com"}`
: apiBaseUrl;
const owner = config.owner;
const repo = config.repo;
Expand Down

0 comments on commit aeb6b33

Please sign in to comment.