We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2839a0f commit a8ad331Copy full SHA for a8ad331
apps/american-british-translator/public/index.js
@@ -4,7 +4,6 @@ const translateHandler = async () => {
4
const errorArea = document.getElementById('error-msg');
5
const translatedArea = document.getElementById('translated-sentence');
6
7
- const stuff = { text: textArea.value, locale: localeArea.value };
8
errorArea.innerText = '';
9
translatedArea.innerText = '';
10
@@ -14,7 +13,7 @@ const translateHandler = async () => {
14
13
Accept: 'application/json',
15
'Content-type': 'application/json'
16
},
17
- body: JSON.stringify(stuff)
+ body: JSON.stringify({ text: textArea.value, locale: localeArea.value })
18
});
19
20
const parsed = await data.json();
0 commit comments