aboutsummaryrefslogtreecommitdiff
path: root/src-ui/src
diff options
context:
space:
mode:
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>) {