aboutsummaryrefslogtreecommitdiff
path: root/src-ui
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-10 13:23:06 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-10 13:23:06 +0200
commit2f6f876b8048bfe14a4aab27cbef02195fc1bb0a (patch)
tree1332287f8c1c5b5bbb2da4d80ece06b9f6343e32 /src-ui
parent809cbed66336d44ab88113137d5fbf130e75cc8b (diff)
downloadFlightCore-2f6f876b8048bfe14a4aab27cbef02195fc1bb0a.tar.gz
FlightCore-2f6f876b8048bfe14a4aab27cbef02195fc1bb0a.zip
Use locked HTML input field for showing gamepath
instead of its own custom HTML element
Diffstat (limited to 'src-ui')
-rw-r--r--src-ui/src/main.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts
index 0bd22c58..39ddf2dd 100644
--- a/src-ui/src/main.ts
+++ b/src-ui/src/main.ts
@@ -48,8 +48,8 @@ async function manually_find_titanfall2_install(omniButtonEl: HTMLElement) {
if (is_valid_titanfall2_install) {
globalState.gamepath = selected;
- let installLocationHolderEl = $("install-location-holder") as HTMLElement;
- installLocationHolderEl.textContent = globalState.gamepath;
+ let installLocationHolderEl = document.getElementById("install-location-holder") as HTMLInputElement;
+ installLocationHolderEl.value = globalState.gamepath;
// Update omni-button
omniButtonEl.textContent = button_install_string;
@@ -71,7 +71,7 @@ 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;
+ let installLocationHolderEl = document.getElementById("install-location-holder") as HTMLInputElement;
let versionNumberHolderEl = $("version-number-holder") as HTMLElement;
let omniButtonEl = document.getElementById("omni-button") as HTMLElement;
let hostOsHolderEl = $("host-os-holder") as HTMLElement;
@@ -139,7 +139,7 @@ document.addEventListener("DOMContentLoaded", async function () {
// Change omni-button content based on whether game install was found
if (install_location && install_location.length > 0) {
omniButtonEl.textContent = button_install_string;
- installLocationHolderEl.textContent = install_location;
+ installLocationHolderEl.value = install_location;
globalState.gamepath = install_location;
// Check installed Northstar version if found