From 6fd71fa6fa6d57a3c6c4b61e90f303be3d982319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=93=8D=BC?= <143974574+xojw@users.noreply.github.com> Date: Fri, 6 Jun 2025 19:02:40 -0500 Subject: [PATCH] ? --- public/assets/js/$.js | 4 ++++ 1 file changed, 4 insertions(+) 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}`;