INNER CODE UNIT · JavaScript
url
autokitteh/autokitteh · internal/backend/webtools/web/webmessages/app.js:85
const url = pathPrefixURL + chatInputPath.value
try {
const resp = await fetch(url, {
method: 'POST',
body: body,
})
const rtext = await resp.text()
newMessage({
addr: `You → <span class="like-pre">${url}</span>`,
text: `Sent: <span class="like-pre">${body}</span><br/>Got <span class="like-pre">${resp.statusText}</span>`,
created_at: new Date(),
id: '',
})
} catch (error) {
console.error(error)