From 16b588373eb454da1e22e669e0f4bc3ad10582d3 Mon Sep 17 00:00:00 2001 From: Sainan Date: Wed, 26 Jun 2024 03:20:00 +0000 Subject: [PATCH] Apply prettier changes --- static/webui/script.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/static/webui/script.js b/static/webui/script.js index 3242d9d2..e6eaa7c9 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -729,13 +729,13 @@ fetch("http://localhost:61558/ping", { mode: "no-cors" }).then(() => { function doUnlockAllFocusSchools() { revalidateAuthz(() => { - $.get("/api/inventory.php?" + window.authz + "&xpBasedLevelCapDisabled=1").done(async (data) => { + $.get("/api/inventory.php?" + window.authz + "&xpBasedLevelCapDisabled=1").done(async data => { const missingFocusUpgrades = { "/Lotus/Upgrades/Focus/Attack/AttackFocusAbility": true, "/Lotus/Upgrades/Focus/Tactic/TacticFocusAbility": true, "/Lotus/Upgrades/Focus/Ward/WardFocusAbility": true, "/Lotus/Upgrades/Focus/Defense/DefenseFocusAbility": true, - "/Lotus/Upgrades/Focus/Power/PowerFocusAbility": true, + "/Lotus/Upgrades/Focus/Power/PowerFocusAbility": true }; if (data.FocusUpgrades) { for (const focusUpgrade of data.FocusUpgrades) { @@ -750,7 +750,11 @@ function doUnlockAllFocusSchools() { if (Object.keys(missingFocusUpgrades).length == 0) { alert("All focus schools are already unlocked."); } else { - alert("Unlocked " + Object.keys(missingFocusUpgrades).length + " new focus schools! An inventory update will be needed for the changes to be reflected in-game. Visiting the navigation should be the easiest way to trigger that."); + alert( + "Unlocked " + + Object.keys(missingFocusUpgrades).length + + " new focus schools! An inventory update will be needed for the changes to be reflected in-game. Visiting the navigation should be the easiest way to trigger that." + ); } }); }); @@ -771,7 +775,7 @@ function unlockFocusSchool(upgradeType) { data: JSON.stringify({ FocusType: upgradeType }) - }).done(function() { + }).done(function () { resolve(); }); });