mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-21 23:41:01 +00:00
Add missing bracket in API request example
This commit is contained in:
parent
0a7fe447e1
commit
951a341ab9
2 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue