From 60b1b4574911eac5f3e3b4f14e086317b84a8350 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Sat, 1 Feb 2025 19:57:51 -0500 Subject: [PATCH] Update TGBeta.ps1 --- TGBeta.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TGBeta.ps1 b/TGBeta.ps1 index a27cffd..d7d32f1 100644 --- a/TGBeta.ps1 +++ b/TGBeta.ps1 @@ -788,6 +788,10 @@ function GetHtmlContent { const n8nPasswordInput = document.getElementById('n8nPassword'); const fetchSitesButton = document.getElementById('fetchSitesButton'); + // Update the disabled state based on password length (now 12 characters) + n8nPasswordInput.addEventListener('input', () => { + fetchSitesButton.disabled = n8nPasswordInput.value.length < 12; + // Tab Switching const tabButtons = document.querySelectorAll('.tab-button'); const tabContents = document.querySelectorAll('.tab-content');