From c8b725830bee3e35302c454acbacd50e17208006 Mon Sep 17 00:00:00 2001 From: Lee Salminen Date: Mon, 29 Aug 2022 07:55:51 -0600 Subject: [PATCH] make copy lnurl to clipboard work --- lnbits/extensions/boltcards/static/js/index.js | 1 + lnbits/extensions/boltcards/templates/boltcards/index.html | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lnbits/extensions/boltcards/static/js/index.js b/lnbits/extensions/boltcards/static/js/index.js index 27536304..e6c052ac 100644 --- a/lnbits/extensions/boltcards/static/js/index.js +++ b/lnbits/extensions/boltcards/static/js/index.js @@ -16,6 +16,7 @@ new Vue({ return { toggleAdvanced: false, nfcTagReading: false, + lnurlLink: `lnurlw://${window.location.host}/boltcards/api/v1/scan/`, cards: [], hits: [], refunds: [], diff --git a/lnbits/extensions/boltcards/templates/boltcards/index.html b/lnbits/extensions/boltcards/templates/boltcards/index.html index 73e5820b..6938eb46 100644 --- a/lnbits/extensions/boltcards/templates/boltcards/index.html +++ b/lnbits/extensions/boltcards/templates/boltcards/index.html @@ -68,8 +68,7 @@ outline color="grey" @click="copyText(lnurlLink + props.row.uid)" - lnurlLink - >lnurl://...lnurlw://...Click to copy, then add to NFC card