misc: change default instance URL to lemdro.id

This commit is contained in:
James Xylight committed 2025-06-06 12:01:22 -07:00
1 parent 751bce4c81
commit df25431c41
119 files changed
+173 -188

No files matched your search

-13
View File
@@ -20,9 +20,6 @@ class SiteData {
export const site = new SiteData()
const isURL = (input: RequestInfo | URL): input is URL =>
typeof input == 'object' && 'searchParams' in input
async function customFetch(
func:
| ((
@@ -47,16 +44,6 @@ async function customFetch(
}
}
if (init?.body && auth) {
try {
const json = JSON.parse(init.body.toString())
json.auth = auth
init.body = JSON.stringify(json)
} catch (e) {
// It seems this isn't a JSON request. Ignore adding an auth parameter.
}
}
const res = await f(input, init)
if (!res.ok) error(res.status, await res.text())
return res