diff --git a/SVSTaskGate.ps1 b/SVSTaskGate.ps1 index 68a26ac..3c6eb94 100644 --- a/SVSTaskGate.ps1 +++ b/SVSTaskGate.ps1 @@ -715,19 +715,7 @@ function GetHtmlContent { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ installRMMCommand, UID, Name }) - }) - .then(response => { - if (!response.ok) { - appendLog(`Error: ${response.statusText}`, "red"); - throw new Error(`Server responded with status ${response.status}`); - } - return response.text(); - }) - .then(data => { - appendLog(`Response: ${data}`, "green"); - }) - .catch(error => { - appendLog(`Fetch error: ${error.message}`, "red"); + }); }