what are you doing big bro

This commit is contained in:
quoije
2025-02-05 20:59:33 -05:00
parent 735793e69f
commit 34870c2f53
9 changed files with 56 additions and 42 deletions
+1 -18
View File
@@ -26,21 +26,4 @@ if (localStorage.getItem('auth_token')) {
const error = await res.json();
alert(`${error.message}`);
}
});
// Fetch version information from the API
async function fetchVersionInfo() {
const res = await fetch('/api/version');
if (res.ok) {
const data = await res.json();
// Update footer with the fetched version info
const footerText = `${data.date} - ${data.version} - ${data.message}`;
document.getElementById('footer-text').textContent = footerText;
} else {
document.getElementById('footer-text').textContent = '';
}
}
// Call the function to fetch and display the version info
// Doesn't work on prod, will fix later
fetchVersionInfo();
});