From 47cea68e04241e54e5747484cab6c0fc86768de4 Mon Sep 17 00:00:00 2001 From: BOTAlex Date: Mon, 6 Oct 2025 15:36:31 +0200 Subject: [PATCH] sync --- src/ts/Redaction/Redactor.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ts/Redaction/Redactor.ts b/src/ts/Redaction/Redactor.ts index cfbfcbb..eac2d9c 100644 --- a/src/ts/Redaction/Redactor.ts +++ b/src/ts/Redaction/Redactor.ts @@ -2,14 +2,14 @@ import { parseProfile, type Profile } from "./Profile"; class Redactor { async TryGetUnredacter(): Promise { - 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();