Skip to content

Commit aeb6b33

Browse files
✨ Allow the use of other mirrors instead of raw.githubusercontent.com
Merge pull request #444 from poikcue/master
2 parents 16bca9f + d394f83 commit aeb6b33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/LiveStatus.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
let sites = [];
1313
if (!apiBaseUrl) apiBaseUrl = "https://api.github.com";
1414
const userContentBaseUrl = apiBaseUrl.includes("api.github.com")
15-
? `https://raw.githubusercontent.com`
15+
? `${config.githubUserContentBaseUrl || "https://raw.githubusercontent.com"}`
1616
: apiBaseUrl;
1717
const graphsBaseUrl = `${userContentBaseUrl}/${owner}/${repo}/master/graphs`;
1818
let form = null;

src/components/Summary.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
let { apiBaseUrl } = config["status-website"] || {};
1010
if (!apiBaseUrl) apiBaseUrl = "https://api.github.com";
1111
const userContentBaseUrl = apiBaseUrl.includes("api.github.com")
12-
? `https://raw.githubusercontent.com`
12+
? `${config.githubUserContentBaseUrl || "https://raw.githubusercontent.com"}`
1313
: apiBaseUrl;
1414
const owner = config.owner;
1515
const repo = config.repo;

0 commit comments

Comments
 (0)