diff --git a/app/views/wallet/index.html.erb b/app/views/wallet/index.html.erb index 6288567..7fffecc 100644 --- a/app/views/wallet/index.html.erb +++ b/app/views/wallet/index.html.erb @@ -26,8 +26,14 @@ accounts should be able to add/import your account using our setup code/URL:
-- +
+ + or @@ -75,7 +81,6 @@ (function () { const buttonShow = document.querySelector('#show-setup-code'); const buttonHide = document.querySelector('#hide-setup-code'); - const buttonCopy = document.querySelector('#copy-setup-code'); const setupCode = document.querySelector('#setup-code'); buttonShow.addEventListener('click', function(ev) { @@ -93,16 +98,5 @@ buttonHide.classList.add('hidden'); buttonShow.classList.remove('hidden'); }); - - buttonCopy.addEventListener('click', function(ev) { - ev.preventDefault(); - navigator.clipboard.writeText('<%= @wallet_url %>').then(() => { - const buttonText = buttonCopy.innerText; - buttonCopy.innerText = 'Copied ✔'; - setTimeout(() => { - buttonCopy.innerText = buttonText; - }, 2000); - }); - }); })();