Normalize tor urls to use ws://

This commit is contained in:
Jon Staab
2025-01-14 15:58:04 -08:00
parent e72d49e563
commit 72e2787ec2
4 changed files with 12 additions and 5 deletions
+3 -1
View File
@@ -1102,7 +1102,9 @@ export const fetchJson = async (url: string, opts: FetchOpts = {}) => {
opts.headers = {}
}
opts.headers["Accept"] = "application/json"
if (!opts.headers["Accept"]) {
opts.headers["Accept"] = "application/json"
}
const res = await fetch(url, opts as RequestInit)
const json = await res.json()