From 11027df552bd620243651eb13c4a193a0f937af5 Mon Sep 17 00:00:00 2001 From: odtheking <78278562+odtheking@users.noreply.github.com> Date: Thu, 2 May 2024 13:42:00 +0300 Subject: [PATCH] Update script.js --- script.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/script.js b/script.js index bcc51ecf7..cce27a28f 100644 --- a/script.js +++ b/script.js @@ -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) => {