aboutsummaryrefslogtreecommitdiff
path: root/src-ui/src/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src-ui/src/main.ts')
-rw-r--r--src-ui/src/main.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts
index 0a2c5401..72556181 100644
--- a/src-ui/src/main.ts
+++ b/src-ui/src/main.ts
@@ -90,6 +90,7 @@ document.addEventListener("DOMContentLoaded", async function () {
let versionNumberHolderEl = $("version-number-holder") as HTMLElement;
let installTypeHolderEl = $("install-type-holder") as HTMLElement;
let omniButtonEl = document.getElementById("omni-button") as HTMLElement;
+ let originRunningHolderEl = $("origin-running-holder") as HTMLElement;
// listen backend-ping event (from Tauri Rust App)
listen("backend-ping", function (evt: TauriEvent<any>) {
@@ -99,6 +100,18 @@ document.addEventListener("DOMContentLoaded", async function () {
}, 500);
})
+ // listen origin-running-ping event (from Tauri Rust App)
+ listen("origin-running-ping", function (evt: TauriEvent<any>) {
+ let origin_is_running = evt.payload as boolean;
+ if (origin_is_running) {
+ originRunningHolderEl.textContent = "ORIGIN RUNNING";
+ }
+ else {
+ originRunningHolderEl.textContent = "ORIGIN NOT RUNNING";
+ }
+ console.log(evt.payload);
+ })
+
// omni button click
omniButtonEl.addEventListener("click", async function () {