diff --git a/samy.js b/samy.js index 4824184..5df1840 100644 --- a/samy.js +++ b/samy.js @@ -223,7 +223,8 @@ document.addEventListener("DOMContentLoaded", () => { // ======================================================================= async function fetchSites() { const pwdInput = document.getElementById("Password"); - const pwd = (pwdInput?.value ?? ""); // allow empty string + const pwd = (pwdInput?.value ?? "").trim(); // allow blank, normalize whitespace + const dropdown = document.getElementById("dattoDropdown");