diff --git a/README.md b/README.md index 6091374..a6d0052 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ const res = await fetch("https://libretranslate.com/translate", { target: "es" }), headers: { "Content-Type": "application/json" } - }); +}); console.log(await res.json()); ``` diff --git a/app/templates/index.html b/app/templates/index.html index a477452..52a62bb 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -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"); }