summaryrefslogtreecommitdiffstats
path: root/src/features/names.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/names.js')
-rw-r--r--src/features/names.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/features/names.js b/src/features/names.js
index 54f15f7..d6acc6a 100644
--- a/src/features/names.js
+++ b/src/features/names.js
@@ -308,6 +308,8 @@ export function namesFeature(ctx) {
id: 'names',
init() { checked = false; lastError = null; refresh(); },
namesAdoptIdentity(signer, npub) { return adoptIdentity(signer, npub); },
+ // the claimed payment address, for anyone prefilling a lightning address
+ namesAddress() { const st = load(); return st.name ? `${st.name}@${st.domain || DOMAIN}` : null; },
stop() { clearTimeout(retryTimer); clearTimeout(deadline); deadline = null; },
receiveModes() {
if (!available()) return [];