From 951a341ab9eb0c4ed54f4e10b6ae97420ac924b1 Mon Sep 17 00:00:00 2001 From: Andrew Dinh Date: Mon, 11 Jan 2021 11:58:56 -0800 Subject: [PATCH] Add missing bracket in API request example --- README.md | 2 +- app/templates/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a5a4704..868faf7 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" + "Content-Type": "application/json"} }); console.log(await res.json()); diff --git a/app/templates/index.html b/app/templates/index.html index 6d430ce..d3a9bd9 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -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");