diff --git a/FireWalletBrowser.bsdesign b/FireWalletBrowser.bsdesign index 5eed954..12ed537 100644 Binary files a/FireWalletBrowser.bsdesign and b/FireWalletBrowser.bsdesign differ diff --git a/main.py b/main.py index aefbeba..58d9629 100644 --- a/main.py +++ b/main.py @@ -673,8 +673,8 @@ def signMessage(domain): content += "" - copyScript = "" - content += "" + copyScript + copyScript = "" + content += "" + copyScript @@ -959,9 +959,15 @@ def settings_action(action): return redirect("/settings?error=" + str(resp['error'])) return redirect("/settings?success=Zapped transactions") elif action == "xpub": + xpub = account_module.getxPub(request.cookies.get("account")) + content = "

" + content += "" + content += "" + content += "" + return render_template("message.html", account=account,sync=account_module.getNodeSync(), title="xPub Key", - content=""+account_module.getxPub(request.cookies.get("account"))+"") + content=""+xpub+"" + content) return redirect("/settings?error=Invalid action") diff --git a/templates/assets/js/receive.min.js b/templates/assets/js/receive.min.js index a8e8594..365ad01 100644 --- a/templates/assets/js/receive.min.js +++ b/templates/assets/js/receive.min.js @@ -1 +1 @@ -function copyAddress(){var e=document.getElementById("copyLink").getAttribute("address"),t=document.createElement("input");t.value=e,document.body.appendChild(t),t.select(),t.setSelectionRange(0,99999),navigator.clipboard.writeText(t.value),document.body.removeChild(t),document.getElementById("copyLink").innerHTML="Copied!"} \ No newline at end of file +function copyToClipboard(){var e=document.getElementById("data");e.style.display="block",e.select(),e.setSelectionRange(0,99999),document.execCommand("copy"),e.style.display="none",document.getElementById("copyButton").innerHTML="Copied"} \ No newline at end of file diff --git a/templates/receive.html b/templates/receive.html index 61f73c5..cc7e32d 100644 --- a/templates/receive.html +++ b/templates/receive.html @@ -66,7 +66,7 @@

{{address}}

-

Use this address to receive HNS or Handshake domains from other people or wallets.

Copy +

Use this address to receive HNS or Handshake domains from other people or wallets.