1
0
Fork 0

Merge branch 'release/3.3.0' into develop

This commit is contained in:
Chocobozzz 2021-08-05 15:17:18 +02:00
commit 421ff4618d
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -85,7 +85,7 @@ async function sha256Hex (data?: ArrayBuffer) {
}
// Fallback for non HTTPS context
const shaModule = await import('sha.js')
const shaModule = (await import('sha.js') as any).default
return new shaModule.sha256().update(Buffer.from(data)).digest('hex')
}