aboutsummaryrefslogtreecommitdiff
path: root/src-ui/src
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-08-29 17:40:14 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-08-29 17:40:14 +0200
commit5bc299e5d1811eee3b0e33e19ed39b53f7174f45 (patch)
tree9ca6a19579531018c6abbda6233547443bb9a85f /src-ui/src
parent7271725a00838299f6ee695cfb0b14ec086e215d (diff)
downloadFlightCore-5bc299e5d1811eee3b0e33e19ed39b53f7174f45.tar.gz
FlightCore-5bc299e5d1811eee3b0e33e19ed39b53f7174f45.zip
Use wrapper function to get Titanfall2 install location
Tauri doesn't allow passing `Result<>` types from backend to frontend. The wrapper returns a string based on the `Result<>` content
Diffstat (limited to 'src-ui/src')
-rw-r--r--src-ui/src/main.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts
index c6a19170..eccd1919 100644
--- a/src-ui/src/main.ts
+++ b/src-ui/src/main.ts
@@ -56,7 +56,7 @@ document.addEventListener("DOMContentLoaded", async function () {
versionNumberHolderEl.textContent = version_number_string;
// Get install location
- let install_location = await invoke("find_game_install_location") as string;
+ let install_location = await invoke("find_game_install_location_caller") as string;
// Change omni-button content based on whether game install was found
if (install_location && install_location.length > 0) {
omniButtonEl.textContent = "Install";