abhattac commited on
Commit
6a07a92
·
1 Parent(s): 7ace83c

fixed another typo

Browse files
Files changed (1) hide show
  1. index.html +1 -1
index.html CHANGED
@@ -20,7 +20,7 @@
20
  const textbox = document.querySelector("#prompt")
21
  const res = document.querySelector("#response")
22
  const prompt = textbox.value
23
- btn.on("click", event => {
24
  fetch(`/gpt?prompt=${prompt}`)
25
  .then(res => res.json())
26
  .then(res => {
 
20
  const textbox = document.querySelector("#prompt")
21
  const res = document.querySelector("#response")
22
  const prompt = textbox.value
23
+ btn.addEventListener("click", event => {
24
  fetch(`/gpt?prompt=${prompt}`)
25
  .then(res => res.json())
26
  .then(res => {