aboutsummaryrefslogtreecommitdiff
path: root/src-ui/src/main.ts
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-10 20:47:34 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-10 20:47:34 +0200
commit9d3f82e13a73998f508ba65ef4076fb79982b13c (patch)
tree7b814e6f585caeb16a9f703396580cd87ccdb208 /src-ui/src/main.ts
parent294bda0a85eb99d9975ffee3c7896da4f760a73f (diff)
downloadFlightCore-9d3f82e13a73998f508ba65ef4076fb79982b13c.tar.gz
FlightCore-9d3f82e13a73998f508ba65ef4076fb79982b13c.zip
Auto-format
Diffstat (limited to 'src-ui/src/main.ts')
-rw-r--r--src-ui/src/main.ts18
1 files changed, 9 insertions, 9 deletions
diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts
index 103e5178..98a772ad 100644
--- a/src-ui/src/main.ts
+++ b/src-ui/src/main.ts
@@ -15,7 +15,7 @@ const button_manual_find_string = "Manually select Titanfall2 install location";
interface GameInstall {
game_path: string;
install_type: string;
- }
+}
// Stores the overall state of the application
var globalState = {
@@ -153,14 +153,14 @@ document.addEventListener("DOMContentLoaded", async function () {
install_type: installTypeHolderEl.textContent
} as GameInstall;
await invoke("launch_northstar", { gameInstall: game_install })
- .then((message) => {
- console.log(message);
- omniButtonEl.textContent = `${button_launched_string} (v${globalState.installed_northstar_version})`;
- })
- .catch((error) => {
- console.error(error);
- alert(error);
- });
+ .then((message) => {
+ console.log(message);
+ omniButtonEl.textContent = `${button_launched_string} (v${globalState.installed_northstar_version})`;
+ })
+ .catch((error) => {
+ console.error(error);
+ alert(error);
+ });
break;
// Do nothing when clicked during install/update/game-launched