From 52ff5e1219db6010e4f1ae9292579f346f148c10 Mon Sep 17 00:00:00 2001 From: SaketAnand Date: Thu, 11 Jul 2024 16:45:23 +0530 Subject: [PATCH] Update index.html --- index.html | 176 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 101 insertions(+), 75 deletions(-) diff --git a/index.html b/index.html index 452066d..2b6a0e2 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,3 @@ - @@ -341,6 +340,7 @@ src="scripts/btcwallet_scripts_lib.js" type="text/javascript" > + @@ -411,9 +411,9 @@ document.addEventListener("popupclosed", (e) => { zIndex--; switch (e.target.id) { - case 'retrieve_btc_addr_popup': - getRef('recovered_btc_addr_wrapper').classList.add('hidden') - break; + case "retrieve_btc_addr_popup": + getRef("recovered_btc_addr_wrapper").classList.add("hidden"); + break; } }); //Function for displaying toast notifications. pass in error for mode param if you want to show an error. @@ -705,8 +705,7 @@ if (!value) return { isValid: false, - errorText: - "Please enter a Solana Seed", + errorText: "Please enter a Solana Seed", }; return { isValid: (() => { @@ -1067,10 +1066,22 @@ class="contact" .dataset=${{ address: walletAddress }} > - ${!isFloAddr - ? null - : html``} + ? html`` + : html` + (e.target + .closest(".contact") + .querySelector("sm-copy").value = e.target.value)} + > + SOL + ${isFloAddr.startsWith("bc") + ? "BTC" + : "FLO"} + + `}