Copy Npub button
This commit is contained in:
1 parent
c68f91923a
commit
aa5b477651
6 files changed
+35
-9
No files matched your search
@@ -263,3 +263,11 @@ export async function getDelegator(index) {
|
||||
console.log(profile);
|
||||
return [profile.delegate, profile.delegator];
|
||||
}
|
||||
|
||||
export async function getNpub() {
|
||||
let index = await getProfileIndex();
|
||||
return await browser.runtime.sendMessage({
|
||||
kind: 'getNpub',
|
||||
payload: index,
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user