From 57cb5a78c0700602b5704feac87047545d08f8a7 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Sat, 4 Jan 2025 03:24:19 -0500 Subject: [PATCH] Update SVSTaskGate.ps1 --- SVSTaskGate.ps1 | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) 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"); + }); }