Skip to content

Commit 498eea0

Browse files
sbryngelsonclaude
andcommitted
Guard against displaying "undefined" when GitHub API rate-limits
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 89eab0e commit 498eea0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181

8282
fetch("https://api.github.com/repos/MFlowCode/MFC/releases/latest")
8383
.then(r => r.json())
84-
.then(r => { document.getElementById("release-ver").innerText = r.tag_name; })
84+
.then(r => { if (r.tag_name) document.getElementById("release-ver").innerText = r.tag_name; })
8585
.catch(() => {});
8686

8787
fetch("https://api.github.com/repos/MFlowCode/MFC/contributors")

0 commit comments

Comments
 (0)