Skip to content

Commit

Permalink
Update freenode.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisCenGH authored May 16, 2024
1 parent baf37a9 commit ed23974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/freenode.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ fetch('https://api.github.com/repos/tolinkshare/freenode/contents/README.md')
const markdownContent = atob(data.content); // 解码Base64编码的Markdown内容
const extractedText = extractTextBetweenThirdAndFourthBackticks(markdownContent);
const encodedText = btoa(extractedText);
document.getElementById('content').innerText = encodedText; // 输出文本内容
document.getElementById('content').innerText = extractedText; // 输出文本内容
})
.catch(error => console.error('Error fetching README.md:', error));

Expand Down

0 comments on commit ed23974

Please sign in to comment.