diff options
Diffstat (limited to 'src-ui')
-rw-r--r-- | src-ui/src/main.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts index 3c44ce55..fcd68cb4 100644 --- a/src-ui/src/main.ts +++ b/src-ui/src/main.ts @@ -11,6 +11,7 @@ document.addEventListener("DOMContentLoaded", async function () { let pingEl = $("backend-ping")! as HTMLElement; let panicButtonEl = $("panic-button") as HTMLElement; let installLocationHolderEl = $("install-location-holder") as HTMLElement; + let versionNumberHolderEl = $("version-number-holder") as HTMLElement; // listen backend-ping event (from Tauri Rust App) listen("install-location-result", function (evt: TauriEvent<string>) { @@ -19,6 +20,11 @@ document.addEventListener("DOMContentLoaded", async function () { installLocationHolderEl.textContent = evt.payload; }) + // listen for version number ping + listen("current-version-ping", function (evt: TauriEvent<string>) { + versionNumberHolderEl.textContent = evt.payload; + }) + // listen backend-ping event (from Tauri Rust App) listen("backend-ping", function (evt: TauriEvent<any>) { pingEl.classList.add("on"); |