From f87da0fb449df1e11e192cd7e643b756a549df53 Mon Sep 17 00:00:00 2001 From: Arc <33088785+arcbtc@users.noreply.github.com> Date: Mon, 16 Dec 2019 21:48:27 +0000 Subject: [PATCH] Update app.js Added copy function --- LNbits/static/app.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/LNbits/static/app.js b/LNbits/static/app.js index d902e19..bc86e5f 100644 --- a/LNbits/static/app.js +++ b/LNbits/static/app.js @@ -248,9 +248,9 @@ function scanQRsend() { '
Memo: ' + outmemo + '' + - "

" + - JSON.stringify(code.data) + - '

' + + "

" + "" + @@ -266,6 +266,14 @@ function scanQRsend() { } } +function copyfunc(){ + var copyText = document.getElementById("invoiceinput"); + copyText.select(); + copyText.setSelectionRange(0, 99999); + document.execCommand("copy"); + +} + function deletewallet() { var url = 'deletewallet?wal=' + wallet.id + '&usr=' + user window.location.href = url