Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
odtheking authored May 2, 2024
1 parent e68a99b commit 11027df
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,10 @@ function populateModuleList(moduleListId, type) {
let currentCategory = ''; // Store the current category
let currentCat
// Fetch the README content from the GitHub API and handle it in the promise chain
fetch("https://api.github.com/repos/odtheking/odinclient/contents/README.md")
.then(response => response.json())
fetch("https://pastebin.com/raw/ceX5fFig")
.then(data => {
// The content is base64 encoded, so you need to decode it
const decodedContent = atob(data.content);

// Parse the README content and get module pairs
const modulePairs = parseReadmeContent(decodedContent);
const modulePairs = parseReadmeContent(data);

// Iterate over the module pairs and create the module list
modulePairs.forEach((module, index) => {
Expand Down

0 comments on commit 11027df

Please sign in to comment.