?
This commit is contained in:
parent
994cb17641
commit
6fd71fa6fa
|
@ -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}`;
|
||||
|
|
Loading…
Reference in New Issue
Block a user