diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-08-27 13:38:05 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-08-27 13:38:05 +0200 |
commit | 4134c55bbe641445fb47dff2ec3ed23c9cbdc970 (patch) | |
tree | 84a216622e8104deed5bfa5f0d68022ec49982be /src-ui | |
parent | 2b2d636177af18a1cd0bdee48cacd4e60d5eb37d (diff) | |
download | FlightCore-4134c55bbe641445fb47dff2ec3ed23c9cbdc970.tar.gz FlightCore-4134c55bbe641445fb47dff2ec3ed23c9cbdc970.zip |
Find Titanfall2 steam install location
and propagate it to front-end
Diffstat (limited to 'src-ui')
-rw-r--r-- | src-ui/src/main.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts index f5f3f303..3c44ce55 100644 --- a/src-ui/src/main.ts +++ b/src-ui/src/main.ts @@ -10,6 +10,14 @@ document.addEventListener("DOMContentLoaded", async function () { let counterResultEl = $("counter-result") as HTMLElement; let pingEl = $("backend-ping")! as HTMLElement; let panicButtonEl = $("panic-button") as HTMLElement; + let installLocationHolderEl = $("install-location-holder") as HTMLElement; + + // listen backend-ping event (from Tauri Rust App) + listen("install-location-result", function (evt: TauriEvent<string>) { + // alert(evt.payload); + // result = evt as String; + installLocationHolderEl.textContent = evt.payload; + }) // listen backend-ping event (from Tauri Rust App) listen("backend-ping", function (evt: TauriEvent<any>) { |