From 2b4195b0003fdd0db258dcec3f780e0eb0668b5e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 5 Sep 2026 21:03:38 -0700 Subject: The POS-link QR is itself a lightning: link — tapping it on the device showing it hands the LNURL straight to whatever wallet owns the scheme, no scanning your own screen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01MGzU12QrAA4G6BYGzGVdXz --- src/features/names.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/features') diff --git a/src/features/names.js b/src/features/names.js index c8a2b1d..d23011b 100644 --- a/src/features/names.js +++ b/src/features/names.js @@ -482,7 +482,13 @@ export function namesFeature(ctx) { return h('div', { class: 'card col', 'data-key': 'poslink' }, h('h3', {}, t('namesPosLink')), h('p', { class: 'small muted', style: 'margin:0' }, t('namesPosLinkHow')), - h('div', { style: 'align-self:center;max-width:220px', html: qrSvg(lnurl, { ec: 'L', mode: 'Alphanumeric' }) }), + // the QR is itself a lightning: link — tapping it on the very device + // that shows it hands the LNURL to whatever wallet owns the scheme + h('a', { + href: 'lightning:' + lnurl.toLowerCase(), + style: 'align-self:center;max-width:220px;display:block', + html: qrSvg(lnurl, { ec: 'L', mode: 'Alphanumeric' }), + }), h('div', { class: 'addr-box break', style: 'font-size:10px' }, lnurl), h('div', { class: 'row gap6', style: 'flex-wrap:wrap' }, // copied as a lightning: URI so it's tappable/pasteable anywhere; -- cgit v1.2.3