Skip to content
Snippets Groups Projects
Unverified Commit 951a341a authored by Andrew Dinh's avatar Andrew Dinh
Browse files

Add missing bracket in API request example

parent 0a7fe447
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment