Copy Npub button

This commit is contained in:
Ryan Breen committed 2023-06-04 16:31:34 -04:00
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,
});
}