From: Matt Corallo Date: Mon, 15 Jul 2024 23:48:06 +0000 (+0000) Subject: Fix button disabling, incl on refresh X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=6c0e05e178a05305e4c8157252c222a60239f2a1;p=satsto.me Fix button disabling, incl on refresh --- diff --git a/index.html b/index.html index 930aa70..6daf593 100644 --- a/index.html +++ b/index.html @@ -207,7 +207,7 @@ ₿ - + @@ -278,7 +278,11 @@ document.getElementById("address").onchange = check_text; document.getElementById("address").onkeypress = check_text; document.getElementById("address").oninput = check_text; + check_text(); window.lookup_domain = function() { + if (document.getElementById("paybutton").classList.contains("go-button-disabled")) { + return; + } const addr_parts = address_box.value.split("@"); var dom = addr_parts[0] + ".user._bitcoin-payment." + addr_parts[1]; if (!dom.endsWith(".")) dom += ".";