Update example code format

This commit is contained in:
Piero Toffanin 2021-01-15 12:13:42 -05:00
parent db01aeb404
commit 31359064b3
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" }
});
});
console.log(await res.json());
```

View file

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