diff --git a/SVSTaskGate-old.ps1 b/SVSTaskGate-old.ps1 index c39f08f..b62c33d 100644 --- a/SVSTaskGate-old.ps1 +++ b/SVSTaskGate-old.ps1 @@ -688,6 +688,7 @@ function GetHtmlContent { const UID = dropdown.options[dropdown.selectedIndex].value; const Name = dropdown.options[dropdown.selectedIndex].text; + const installSVSMSPModule = document.querySelector('input[name="installSVSMSPModule"]'); const installDattoRMM = document.querySelector('input[name="installDattoRMM"]'); const installCyberQP = document.querySelector('input[name="installCyberQP"]'); const installSplashtop = document.querySelector('input[name="installSplashtop"]'); @@ -696,7 +697,7 @@ function GetHtmlContent { const installThreatLocker = document.querySelector('input[name="installThreatlocker"]'); const installRocketCyber = document.querySelector('input[name="installRocketCyber"]'); - if (installSVSMSPModule) { + if (installSVSMSPModule.checked) { appendLog("Installing SVSMSP Module...", "cyan"); fetch('/installsvsmspmodule', { method: 'GET' }) .then(response => {