1 parent
db001a6729
commit
be33e66d5c
1 file changed
+2
-1
@@ -23,7 +23,8 @@ async function decrypt() {
|
||||
method: "POST", headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({ ciphertext: ciphertext })
|
||||
});
|
||||
document.getElementById("decodedtext").value = await res.JSON;
|
||||
const data = await res.json();
|
||||
document.getElementById("decodedtext").value = JSON.stringify(data, null, 2);
|
||||
} catch (e) { alert("Errore di connessione!"); }
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user