Skip to content

Commit 7e3ed62

Browse files
authored
Update script.js
1 parent c788bb0 commit 7e3ed62

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

script.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,14 @@ form.addEventListener("submit", async (e) => {
1111
input.value = "";
1212

1313
try {
14-
console.log("Verzend dit naar chatproxy:", message);
15-
1614
const response = await fetch("https://chatproxy.azurewebsites.net/api/chatproxy", {
1715
method: "POST",
1816
headers: { "Content-Type": "application/json" },
1917
body: JSON.stringify({ message })
2018
});
2119

2220
const text = await response.text();
23-
console.log("Ontvangen van proxy:", text);
21+
console.log("Responsetekst:", text);
2422

2523
if (!response.ok) {
2624
throw new Error(`Serverfout: ${response.status}`);

0 commit comments

Comments
 (0)