Copy Npub button

This commit is contained in:
Ryan Breen
2023-05-24 22:35:46 -04:00
parent c68f91923a
commit aa5b477651
6 changed files with 35 additions and 9 deletions

View File

@@ -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,
});
}