(async () => { try { const res = await fetch('/api/github-updates'); const { updates } = await res.json(); const u = updates[0]; const commitUrl = `https://github.com/xojw/waves/commit/${u.sha}`; document.getElementById('lastest-commit').innerHTML = ` ${u.sha}`; } catch { document.getElementById('lastest-commit').textContent = 'Failed to load lastest commit'; } })();