From: Alex Lewin Date: Fri, 6 Sep 2024 14:20:04 +0000 (+0000) Subject: Set appropriate `rel` tags on links. X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=5123a1f7dc0e3c358c92561a2ee1b6d03dd9f531;p=satsto.me Set appropriate `rel` tags on links. --- diff --git a/index.html b/index.html index 31cccf0..0068eba 100644 --- a/index.html +++ b/index.html @@ -292,11 +292,11 @@ @@ -336,13 +336,13 @@ if (!/^[\p{ASCII}]*$/u.test(addr_parts[0])) { document.getElementById("paybutton").classList.add("go-button-disabled"); document.getElementById("errors").classList.add("errors-filled"); - document.getElementById("errors").innerHTML = "To protect against Homograph Attacks, the user part of addres must be ASCII"; + document.getElementById("errors").innerHTML = "To protect against Homograph Attacks, the user part of addres must be ASCII"; return true; } if (!/^[\p{ASCII}]*$/u.test(addr_parts[1])) { document.getElementById("paybutton").classList.add("go-button-disabled"); document.getElementById("errors").classList.add("errors-filled"); - document.getElementById("errors").innerHTML = "To protect against Homograph Attacks, the domain part of addres must be ASCII"; + document.getElementById("errors").innerHTML = "To protect against Homograph Attacks, the domain part of address must be ASCII"; return true; } document.getElementById("paybutton").classList.remove("go-button-disabled"); @@ -441,12 +441,12 @@ if (!/^[\p{ASCII}]*$/u.test(contents)) { value = "Invalid"; } else { - value += "" + contents + ""; + value += "" + contents + ""; } addr_idx += 1; addr_ty_table += "
" + value + "
"; }; - var res = "

It works!

" + name + " was successfully resolved to the following addresses.

Your wallet should have automatically opened to pay, but if not, click here to do so.

"; + var res = "

It works!

" + name + " was successfully resolved to the following addresses.

Your wallet should have automatically opened to pay, but if not, click here to do so.

"; if (base_and_params[0].length != 0) { if (base_and_params[0].startsWith("sp1q")) { res += "

Note: the response included a Silent Payment address which was encoded in the \"body\" position in the URI (i.e. bitcoin:sp1q...) rather than in the \"sp\" query parameter (i.e. bitcoin:?sp=sp1q...). This is incorrect and may cause some wallets to fail to pay on-chain.

";