Add missing bracket in API request example

This commit is contained in:
Andrew Dinh 2021-01-11 11:58:56 -08:00
parent 0a7fe447e1
commit 951a341ab9
No known key found for this signature in database
GPG key ID: 2B557D93C6C08B86
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");