fix(background): nostr-tools doesn't export nip04 file

This commit is contained in:
Fernando López Guevara
2023-02-28 12:03:17 -03:00
committed by fiatjaf_
parent 72c9e516e3
commit 185ee772e1

View File

@@ -6,7 +6,7 @@ import {
getPublicKey,
nip19
} from 'nostr-tools'
import {encrypt, decrypt} from 'nostr-tools/nip04'
import {nip04} from 'nostr-tools'
import {Mutex} from 'async-mutex'
import {
@@ -16,6 +16,8 @@ import {
updatePermission
} from './common'
const {encrypt, decrypt} = nip04
let openPrompt = null
let promptMutex = new Mutex()
let releasePromptMutex = () => {}