diff options
| author | Adam Soltys <[email protected]> | 2026-09-05 21:02:41 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-05 21:02:41 -0700 |
| commit | b655d1f3e021f03a94792e48123351ef2690c8e5 (patch) | |
| tree | 17e3e4211f23b31fd20fe0b914e1d8c80d8178b7 /src/features/names.js | |
| parent | b6f620d97507dcbf5526c61e13675c74776df15d (diff) | |
| download | coinosv3-b655d1f3e021f03a94792e48123351ef2690c8e5.tar.gz coinosv3-b655d1f3e021f03a94792e48123351ef2690c8e5.zip | |
The POS-link card's LNURL copy button copies a lightning: URI (lowercase bech32 with the prefix) — tappable and pasteable anywhere that registers the scheme, including our own Android app — while the QR keeps the bare uppercase form for alphanumeric-mode density
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MGzU12QrAA4G6BYGzGVdXz
Diffstat (limited to 'src/features/names.js')
| -rw-r--r-- | src/features/names.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/features/names.js b/src/features/names.js index 3a8a14e..c8a2b1d 100644 --- a/src/features/names.js +++ b/src/features/names.js @@ -485,7 +485,9 @@ export function namesFeature(ctx) { h('div', { style: 'align-self:center;max-width:220px', 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' }, - copyBtn(lnurl, t('namesPosCopyLnurl')), + // copied as a lightning: URI so it's tappable/pasteable anywhere; + // the QR stays bare uppercase for alphanumeric-mode density + copyBtn('lightning:' + lnurl.toLowerCase(), t('namesPosCopyLnurl')), copyBtn(link, t('namesPosCopyLink')))); } |
