mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-09 00:28:51 +00:00
Improve event types
This commit is contained in:
2
nip04.ts
2
nip04.ts
@@ -5,7 +5,7 @@ import {base64} from '@scure/base'
|
||||
import {utf8Decoder, utf8Encoder} from './utils'
|
||||
|
||||
// @ts-ignore
|
||||
if (typeof(crypto) !== 'undefined' && !crypto.subtle && crypto.webcrypto) {
|
||||
if (typeof crypto !== 'undefined' && !crypto.subtle && crypto.webcrypto) {
|
||||
// @ts-ignore
|
||||
crypto.subtle = crypto.webcrypto.subtle
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user