This commit is contained in:
𓍼 2025-06-06 19:02:40 -05:00
parent 994cb17641
commit 6fd71fa6fa

View File

@ -458,6 +458,10 @@ document.addEventListener('DOMContentLoaded', () => {
(async () => { (async () => {
try { try {
const res = await fetch('/api/latest-commit'); const res = await fetch('/api/latest-commit');
console.log('Fetching latest commit from API:', res);
if (!res.ok) {
throw new Error(`HTTP error! status: ${res.status}`);
}
const { updates } = await res.json(); const { updates } = await res.json();
const u = updates[0]; const u = updates[0];
const commitUrl = `https://github.com/xojw/waves/commit/${u.sha}`; const commitUrl = `https://github.com/xojw/waves/commit/${u.sha}`;