diff --git a/public/assets/js/$.js b/public/assets/js/$.js index df85ad45..0c4e2130 100644 --- a/public/assets/js/$.js +++ b/public/assets/js/$.js @@ -458,6 +458,10 @@ document.addEventListener('DOMContentLoaded', () => { (async () => { try { 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 u = updates[0]; const commitUrl = `https://github.com/xojw/waves/commit/${u.sha}`;