Make it do something

This commit is contained in:
Skylar Grant 2025-01-04 10:33:08 -05:00
parent 73b75f9946
commit 2de2f4b008

View File

@ -36,4 +36,11 @@ async function readResponse(response) {
} catch (error) {
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);
});