Update SVSTaskGate.ps1

This commit is contained in:
2025-01-05 18:48:28 -05:00
parent fd05c723d5
commit 83355a8949

View File

@@ -651,6 +651,12 @@ function GetHtmlContent {
n8nPasswordInput.addEventListener('input', () => {
fetchSitesButton.disabled = n8nPasswordInput.value.length < 4;
});
// Trigger fetchSites() on Enter key press
n8nPasswordInput.addEventListener('keydown', (event) => {
if (event.key === 'Enter' && n8nPasswordInput.value.length >= 4) {
fetchSites(); // Call the fetchSites function
}
});
async function fetchSites() {
const password = document.getElementById('n8nPassword').value;