-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathversion.js
More file actions
31 lines (27 loc) · 939 Bytes
/
version.js
File metadata and controls
31 lines (27 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Version management for Albert Heijn Self-Scanner
// This version is automatically updated by release workflows
const APP_VERSION = {
version: "1.1.25",
buildDate: "2026-04-21",
gitCommit: "28f2931",
environment: "production"
};
// Function to display version in the footer
function displayVersionInfo() {
const footer = document.querySelector('.app-footer');
if (footer) {
const versionText = `v${APP_VERSION.version} (${APP_VERSION.buildDate})`;
const versionElement = footer.querySelector('.version-info');
if (versionElement) {
versionElement.textContent = versionText;
}
}
}
// Export for use in other modules
if (typeof module !== 'undefined' && module.exports) {
module.exports = APP_VERSION;
}
// Auto-display version when DOM is loaded
if (typeof document !== 'undefined') {
document.addEventListener('DOMContentLoaded', displayVersionInfo);
}