Add a few utils, fix relay fetching

This commit is contained in:
Jon Staab
2025-12-12 13:28:48 -08:00
parent 483fff2fbb
commit 780148a31e
3 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ export const onRelay = (sub: (relay: RelayProfile) => void) => {
export const fetchRelayDirectly = async (url: string): Promise<Maybe<RelayProfile>> => {
try {
const json = fetchJson(url.replace(/^ws/, "http"), {
const json = await fetchJson(url.replace(/^ws/, "http"), {
headers: {
Accept: "application/nostr+json",
},