redacted my info, into my database #1

Merged
botalex merged 21 commits from dev into main 2025-10-09 06:42:05 +02:00
Showing only changes of commit 47cea68e04 - Show all commits

View file

@ -2,14 +2,14 @@ import { parseProfile, type Profile } from "./Profile";
class Redactor {
async TryGetUnredacter(): Promise<Profile> {
const key = localStorage.getItem("key");
if (!key) throw new Error("Missing key");
const storedKey = localStorage.getItem("key");
if (!storedKey) throw new Error("Missing key");
const hashResJson = await (
await fetch("http://api.deprived.dev/unredact", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ key: "balls" }),
body: JSON.stringify({ key: storedKey }),
})
).json();