fix non secure deploy

This commit is contained in:
Ruben Fiszel
2023-11-15 15:39:03 +01:00
parent a4dc4e68b1
commit bab0b89e35
3 changed files with 605 additions and 821 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -92,7 +92,7 @@
} catch {
//subtle not available, trying pure js
const hash = new Sha256()
hash.update(message)
hash.update(message ?? '')
const result = Array.from(await hash.digest())
const hex = result.map((b) => b.toString(16).padStart(2, '0')).join('') // convert bytes to hex string
return hex