Merge pull request #11 from andrewkdinh/main

Add missing bracket in API request example
This commit is contained in:
Piero Toffanin 2021-01-11 15:01:36 -05:00 committed by GitHub
commit 9bf3eabb6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ const res = await fetch("https://libretranslate.com/translate", {
target: "es"
}),
headers: {
"Content-Type": "application/json"
"Content-Type": "application/json"}
});
console.log(await res.json());

View file

@ -345,7 +345,7 @@ document.addEventListener('DOMContentLoaded', function(){
' target: "' + this.$options.filters.escape(this.targetLang) + '"',
' }),',
' headers: {',
' "Content-Type": "application/json"',
' "Content-Type": "application/json"}',
' });',
'',
'console.log(await res.json());'].join("\n");