mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-07-29 18:25:47 +02:00
- Add JSDoc comments across frontend and backend modules - Improve code readability and maintainability with consistent documentation style - Document Electron IPC handlers, UI utilities, and theme system - Add missing function/class documentation in theme loader and app services - Minor structural improvements and cleanup across Electron main process modules - Minor fixes on variable names
21 lines
597 B
JavaScript
21 lines
597 B
JavaScript
/**
|
|
* Retrieves the application version from the Electron main process
|
|
* and displays it in the UI version badge (bottom-right corner).
|
|
*
|
|
* This is mainly used for debugging and build identification.
|
|
*/
|
|
async function versionLabel() {
|
|
const appVersion = await window.electronAPI.getVersion();
|
|
|
|
/**
|
|
* UI element displaying the current application version.
|
|
* Updated at runtime after IPC call resolves.
|
|
*/
|
|
const versionBadge = document.getElementById("version-badge");
|
|
|
|
if (!versionBadge) return;
|
|
|
|
versionBadge.textContent = `v${appVersion}`;
|
|
}
|
|
|
|
versionLabel(); |