Improve event types

This commit is contained in:
Alex Gleason
2023-05-06 16:51:23 -05:00
committed by fiatjaf_
parent d0bd599ce8
commit 8a53b3b8b3
8 changed files with 29 additions and 28 deletions

View File

@@ -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
}