Skip to content

Commit

Permalink
Merge pull request #3 from OpenMined/green_button
Browse files Browse the repository at this point in the history
Read from `README.md` instead of `version.md` to conform with current syftbox endpoint standard
  • Loading branch information
rasswanth-s authored Nov 19, 2024
2 parents 7b95c0e + 01a94dc commit 1d1b1dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dashboard/syftbox-sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
return (
githubUrl
.replace("github.com", "raw.githubusercontent.com")
.replace(/\/$/, "") + "/main/version.md"
.replace(/\/$/, "") + "/main/README.md"
);
}

Expand All @@ -22,7 +22,7 @@
const masterUrl = rawUrl.replace("/main/", "/master/");
const masterResponse = await fetch(masterUrl);
if (!masterResponse.ok) {
throw new Error("Failed to fetch version.md from GitHub");
throw new Error("Failed to fetch README.md from GitHub");
}
return parseFrontmatter(await masterResponse.text());
}
Expand Down

0 comments on commit 1d1b1dd

Please # to comment.