chore: Link preview style changes

This commit is contained in:
2023-04-18 12:47:01 +01:00
parent 664d4bf976
commit 3d8269b674
10 changed files with 70 additions and 65 deletions

View File

@ -473,12 +473,8 @@ export function findTag(e: TaggedRawEvent, tag: string) {
return maybeTag && maybeTag[1];
}
export async function hmacSha256(key: Uint8Array, ...messages: Uint8Array[]) {
if (window.crypto.subtle) {
return await secp.utils.hmacSha256(key, ...messages);
} else {
return hmac(hash, key, secp.utils.concatBytes(...messages));
}
export function hmacSha256(key: Uint8Array, ...messages: Uint8Array[]) {
return hmac(hash, key, secp.utils.concatBytes(...messages));
}
export function getRelayName(url: string) {