aboutsummaryrefslogtreecommitdiff
path: root/src-ui/src
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-08-27 13:38:05 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-08-27 13:38:05 +0200
commit4134c55bbe641445fb47dff2ec3ed23c9cbdc970 (patch)
tree84a216622e8104deed5bfa5f0d68022ec49982be /src-ui/src
parent2b2d636177af18a1cd0bdee48cacd4e60d5eb37d (diff)
downloadFlightCore-4134c55bbe641445fb47dff2ec3ed23c9cbdc970.tar.gz
FlightCore-4134c55bbe641445fb47dff2ec3ed23c9cbdc970.zip
Find Titanfall2 steam install location
and propagate it to front-end
Diffstat (limited to 'src-ui/src')
-rw-r--r--src-ui/src/main.ts8
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>) {