Skip to content

Commit

Permalink
🐛 Fix error with missing base URL
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Dec 7, 2020
1 parent 1a22120 commit ba3cd12
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/Summary.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@
import Loading from "../components/Loading.svelte";
import { onMount } from "svelte";
import config from "../data/config.json";
import { createOctokit, handleError } from "../utils/createOctokit";
import { handleError } from "../utils/createOctokit";
export let slug;
let loading = true;
const octokit = createOctokit();
let { apiBaseUrl } = config["status-website"] || {};
if (!apiBaseUrl) apiBaseUrl = "https://api.github.com";
const userContentBaseUrl = apiBaseUrl.includes("api.github.com")
? `https://github.com/raw`
: apiBaseUrl;
const owner = config.owner;
const repo = config.repo;
let summary = null;
Expand Down

0 comments on commit ba3cd12

Please sign in to comment.