This commit is contained in:
@@ -412,3 +412,14 @@ async function showFileInfo(fileName) {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
// Fetch version from build-metadata API
|
||||
fetch('/build-metadata')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
document.getElementById('version-number').textContent = data.build_version;
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error fetching version:', error);
|
||||
document.getElementById('version-number').textContent = 'Version indisponible';
|
||||
});
|
||||
Reference in New Issue
Block a user