From 950c1c3fa52a083b23f6a8b2e6b86fe451784ca6 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Wed, 7 Sep 2022 23:28:10 +0200 Subject: Show host OS next to FlightCore version --- src-ui/src/main.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src-ui') diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts index 0562aa0a..4a00f5a6 100644 --- a/src-ui/src/main.ts +++ b/src-ui/src/main.ts @@ -22,6 +22,7 @@ document.addEventListener("DOMContentLoaded", async function () { let installLocationHolderEl = $("install-location-holder") as HTMLElement; let versionNumberHolderEl = $("version-number-holder") as HTMLElement; let omniButtonEl = document.getElementById("omni-button") as HTMLElement; + let hostOsHolderEl = $("host-os-holder") as HTMLElement; // listen backend-ping event (from Tauri Rust App) listen("backend-ping", function (evt: TauriEvent) { @@ -108,7 +109,9 @@ document.addEventListener("DOMContentLoaded", async function () { // Run the following on initial page load // Get version number let version_number_string = await invoke("get_version_number") as string; - versionNumberHolderEl.textContent = version_number_string; + // Get host OS + let host_os_string = await invoke("get_host_os") as string; + versionNumberHolderEl.textContent = `${version_number_string} (${host_os_string})`; // Get install location let install_location = await invoke("find_game_install_location_caller") as string; -- cgit v1.2.3