From 667f8ccf311bb7d8715b979f9f40e177d07c3a52 Mon Sep 17 00:00:00 2001 From: Sainan Date: Fri, 24 Jan 2025 15:42:15 +0100 Subject: [PATCH] keep non-XP stuff untouched --- static/webui/script.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/static/webui/script.js b/static/webui/script.js index 9f6b756e..56a9ce98 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -734,8 +734,8 @@ function doAcquireMiscItems() { const [category, uniqueName] = data.split(":"); revalidateAuthz(() => { $.post({ - url: "/custom/addXp?" + window.authz, - contentType: "application/json", + url: "/api/missionInventoryUpdate.php?" + window.authz, + contentType: "text/plain", data: JSON.stringify({ [category]: [ { @@ -771,8 +771,8 @@ function doAcquireRiven() { revalidateAuthz(() => { // Add riven type to inventory $.post({ - url: "/custom/addXp?" + window.authz, - contentType: "application/json", + url: "/api/missionInventoryUpdate.php?" + window.authz, + contentType: "text/plain", data: JSON.stringify({ RawUpgrades: [ { @@ -845,8 +845,8 @@ function doAcquireMod() { } revalidateAuthz(() => { $.post({ - url: "/custom/addXp?" + window.authz, - contentType: "application/json", + url: "/api/missionInventoryUpdate.php?" + window.authz, + contentType: "text/plain", data: JSON.stringify({ RawUpgrades: [ { @@ -1033,8 +1033,8 @@ function doAddAllMods() { window.confirm("Are you sure you want to add " + modsAll.length + " mods to your account?") ) { $.post({ - url: "/custom/addXp?" + window.authz, - contentType: "application/json", + url: "/api/missionInventoryUpdate.php?" + window.authz, + contentType: "text/plain", data: JSON.stringify({ RawUpgrades: modsAll.map(mod => ({ ItemType: mod,