Copy Npub button
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
initialize,
|
||||
relayReminder,
|
||||
toggleRelayReminder,
|
||||
getNpub,
|
||||
} from './utilities/utils';
|
||||
import Alpine from 'alpinejs';
|
||||
window.Alpine = Alpine;
|
||||
@@ -86,6 +87,11 @@ Alpine.data('popup', () => ({
|
||||
await toggleRelayReminder();
|
||||
this.showRelayReminder = false;
|
||||
},
|
||||
|
||||
async copyNpub() {
|
||||
let npub = await getNpub();
|
||||
await browser.runtime.sendMessage({ kind: 'copy', payload: npub });
|
||||
},
|
||||
}));
|
||||
|
||||
Alpine.start();
|
||||
|
||||
Reference in New Issue
Block a user