many visual changes + some code cleanup

This commit is contained in:
Daniel
2023-05-24 02:37:26 +03:30
parent 52159d8cde
commit 7178287028
11 changed files with 254 additions and 159 deletions
+4
View File
@@ -0,0 +1,4 @@
export default async function avatarExists(fileUrl: string): Promise<boolean> {
const response = await fetch(fileUrl, { method: "HEAD" });
return !(response.headers.get("content-type") === "text/plain");
}