From e483bc9ff7b19f5db7fb6b5dd1947e33ec35a5ce Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 19 Aug 2022 10:49:16 -0700 Subject: [PATCH] More trypandoc improvements. --- trypandoc/index.html | 2 +- trypandoc/trypandoc.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/trypandoc/index.html b/trypandoc/index.html index 2fe93efdb..8de283e84 100644 --- a/trypandoc/index.html +++ b/trypandoc/index.html @@ -175,7 +175,7 @@

pandoc version

- + diff --git a/trypandoc/trypandoc.js b/trypandoc/trypandoc.js index 84fe491ca..e129c251e 100644 --- a/trypandoc/trypandoc.js +++ b/trypandoc/trypandoc.js @@ -54,13 +54,14 @@ function paramsFromURL() { function handleErrors(response) { if (response.status == 503) { throw Error("Conversion timed out.") - } else if (!response.ok) { - throw Error(response.statusText); +// } else if (!response.ok) { +// throw Error(response.statusText); } return response; } function convert() { + document.getElementById("results").textContent = ""; let text = document.getElementById("text").value; let from = document.getElementById("from").value; let to = document.getElementById("to").value; @@ -99,7 +100,7 @@ function convert() { document.getElementById("permalink").href = permalink(); }) .catch(error => { - document.getElementById("results").textContent = error; + document.getElementById("results").textContent = error } ); };