Make it do something
This commit is contained in:
parent
73b75f9946
commit
2de2f4b008
@ -37,3 +37,10 @@ async function readResponse(response) {
|
||||
outputArea.innerHTML = `<span class="text-red-500">Error: ${error.message}</span>`;
|
||||
}
|
||||
}
|
||||
|
||||
// Event listeners
|
||||
sendButton.addEventListener('click', async () => {
|
||||
outputArea.innerHTML = '';
|
||||
const response = await sendGen();
|
||||
readResponse(response);
|
||||
});
|
Loading…
Reference in New Issue
Block a user