diff options
| author | Adam Soltys <[email protected]> | 2026-09-05 21:03:38 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-05 21:03:38 -0700 |
| commit | 2b4195b0003fdd0db258dcec3f780e0eb0668b5e (patch) | |
| tree | 1b54cea43bf0bd375006c057f8bb7639baec9931 | |
| parent | b655d1f3e021f03a94792e48123351ef2690c8e5 (diff) | |
| download | coinosv3-2b4195b0003fdd0db258dcec3f780e0eb0668b5e.tar.gz coinosv3-2b4195b0003fdd0db258dcec3f780e0eb0668b5e.zip | |
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
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MGzU12QrAA4G6BYGzGVdXz
| -rw-r--r-- | src/features/names.js | 8 |
1 files changed, 7 insertions, 1 deletions
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; |
