Files
Ticketsystem/public/version.js
T

9 lines
295 B
JavaScript

// Fetches app version and updates all footer texts
fetch('/api/version')
.then(res => res.json())
.then(({ version }) => {
document.querySelectorAll('.app-footer-text').forEach(el => {
el.textContent = `Ticket System by Honey v${version} © 2026`;
});
})
.catch(() => {});