diff --git a/fortune_generator/js/fortune.js b/fortune_generator/js/fortune.js index b74af1b..5d10b3e 100644 --- a/fortune_generator/js/fortune.js +++ b/fortune_generator/js/fortune.js @@ -27,10 +27,10 @@ let special_events = []; let commit_hash = ""; // using async and await to prevent fetching the data too late... -async function fetch_data(commit_hash) { +async function fetch_data(requied_commit_hash) { let prefix = ""; - if (commit_hash) { - prefix = `https://raw.githubusercontent.com/LifeAdventurer/generators/${commit_hash}/fortune_generator/`; + if (requied_commit_hash) { + prefix = `https://raw.githubusercontent.com/LifeAdventurer/generators/${requied_commit_hash}/fortune_generator/`; } await fetch(`${prefix}./json/fortune.json`) .then((response) => response.json()) diff --git a/fortune_generator/json/commit_hash.json b/fortune_generator/json/commit_hash.json index a4e6b66..7ac6cce 100644 --- a/fortune_generator/json/commit_hash.json +++ b/fortune_generator/json/commit_hash.json @@ -1 +1 @@ -{ "commit_hash": "cf9254c60ccf92d53b2ab263a5a00c487d28f919" } +{ "commit_hash": "f9f0f9c1a4c6bd2207ff884a63c6fd2fbda04f33" }