Fix sha fallback

pull/4317/head
Chocobozzz 2021-08-05 15:17:09 +02:00
parent 3ce48a0cd0
commit ff5f37e4f3
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

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')
}