From 6c0e05e178a05305e4c8157252c222a60239f2a1 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 15 Jul 2024 23:48:06 +0000 Subject: [PATCH] Fix button disabling, incl on refresh --- index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 += "."; -- 2.39.5