add interface for getRelays() and bump version.

This commit is contained in:
fiatjaf
2022-02-15 16:15:27 -03:00
parent 414c0ea337
commit 259a37d4d7
4 changed files with 22 additions and 11 deletions

View File

@@ -58,6 +58,10 @@ async function handleContentScriptMessage({type, params, host}) {
case 'getPublicKey': {
return Buffer.from(getPublicKey(sk)).toString('hex')
}
case 'getRelays': {
let results = await browser.storage.local.get('relays')
return results.relays || {}
}
case 'signEvent': {
let {event} = params