mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
fix: prevent avatar digest error on localhost
This commit is contained in:
parent
1ef47713f4
commit
a1d7f65aa6
@ -13,7 +13,7 @@
|
||||
const msgBuffer = new TextEncoder().encode(normalizedEmail)
|
||||
|
||||
// Hash the email using MD5
|
||||
const hashBuffer = await crypto.subtle.digest('SHA-256', msgBuffer)
|
||||
const hashBuffer = await crypto.subtle?.digest('SHA-256', msgBuffer)
|
||||
|
||||
// Convert the hash to a hex stringc
|
||||
const hashArray = Array.from(new Uint8Array(hashBuffer))
|
||||
|
Loading…
x
Reference in New Issue
Block a user