42loops commited on
Commit
77eafd0
1 Parent(s): bcabc9d

fix textarea demo

Browse files
Files changed (1) hide show
  1. index.html +1 -1
index.html CHANGED
@@ -42,7 +42,7 @@
42
  button.disabled = true;
43
  await nextTick();
44
  await sleep();
45
- const from = document.getElementById("from").textContent;
46
  const src_lang = document.getElementById("src_lang").value;
47
  const tgt_lang = document.getElementById("tgt_lang").value;
48
  const to = await translator(from, { src_lang, tgt_lang });
 
42
  button.disabled = true;
43
  await nextTick();
44
  await sleep();
45
+ const from = document.getElementById("from").value;
46
  const src_lang = document.getElementById("src_lang").value;
47
  const tgt_lang = document.getElementById("tgt_lang").value;
48
  const to = await translator(from, { src_lang, tgt_lang });